These namespaces use to contain the original block hue constants,
but were deprecated (via comment, except for procedures) over a year
ago. With the removal of those constants, the declarations were
creating empty, unused objects.
* Warn if jsonInit() receives a colour attribute without a value.
* Extract colour init code into function.
* Adding block type name to prior warnings.
* Warn if jsonInit() receives a colour attribute without a value.
* Extract colour init code into function.
* Adding block type name to prior warnings.
Rewrote Blockly.checkBlockColourConstant_(..).
* Last argument is now the expected value of the constant (replacing
the `removed` argument). The prevents warnings when a Msg colour
constant is overridden (the correct way).
* If a value for the constant is not found, do not warn (#1790).
Rewrote Blockly.checkBlockColourConstant_(..).
* Last argument is now the expected value of the constant (replacing
the `removed` argument). The prevents warnings when a Msg colour
constant is overridden (the correct way).
* If a value for the constant is not found, do not warn (#1790).
* Create prevBlock_ upon first call to onchange.
* Revert state upon an incompatible combination, bumping the new incompatible
block, instead of the old block. Thus, the shadow is never the bumped block.
Bug:
* The undo stack get caught in a loop, and will never undo back to a state
equivalent to the previous action.
JSON array with null or undefined value will now skip the offending item, and proceed to load following items. Added tests for null and undefined array elements.
* Testing handling null and undefined id in block definition.
* Adding test utility function to capture console warnings.
* Test assumption that creating a simple block will not cause a warning. This is assumed when later checking warning counts.
* Making all blocks use the MSG colour values.
* Deprecating Blockly.Constants.Lists.HUE and similar constants.
* Removing deprecated Blockly.Blocks.lists.HUE constants.
* Allowing message references in the Block.setColour() parameter.
* Adding checking of older constants, ensuring they are not overwritten.