mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
fix: serializing disabled interactions (#6847)
* feat: add own property getters for disabled interactions * feat: add serialization of disabled attributes
This commit is contained in:
@@ -73,10 +73,25 @@ Serializer.Attributes.Disabled = new SerializerTestCase('Disabled',
|
||||
'<xml xmlns="https://developers.google.com/blockly/xml">' +
|
||||
'<block type="logic_negate" id="id******************" disabled="true" x="42" y="42"></block>' +
|
||||
'</xml>');
|
||||
Serializer.Attributes.NotDeletable = new SerializerTestCase('Deletable',
|
||||
'<xml xmlns="https://developers.google.com/blockly/xml">' +
|
||||
'<block type="logic_negate" id="id******************" deletable="false" x="42" y="42"></block>' +
|
||||
'</xml>');
|
||||
Serializer.Attributes.NotMovable = new SerializerTestCase('Movable',
|
||||
'<xml xmlns="https://developers.google.com/blockly/xml">' +
|
||||
'<block type="logic_negate" id="id******************" movable="false" x="42" y="42"></block>' +
|
||||
'</xml>');
|
||||
Serializer.Attributes.NotEditable = new SerializerTestCase('Editable',
|
||||
'<xml xmlns="https://developers.google.com/blockly/xml">' +
|
||||
'<block type="logic_negate" id="id******************" editable="false" x="42" y="42"></block>' +
|
||||
'</xml>');
|
||||
Serializer.Attributes.testCases = [
|
||||
Serializer.Attributes.Basic,
|
||||
Serializer.Attributes.Collapsed,
|
||||
Serializer.Attributes.Disabled,
|
||||
Serializer.Attributes.NotDeletable,
|
||||
Serializer.Attributes.NotMovable,
|
||||
Serializer.Attributes.NotEditable,
|
||||
];
|
||||
|
||||
Serializer.Attributes.Inline = new SerializerTestSuite('Inline');
|
||||
|
||||
Reference in New Issue
Block a user