mirror of
https://github.com/google/blockly.git
synced 2026-01-07 09:00:11 +01:00
This reverts commit 0961aca4c8.
This commit is contained in:
@@ -129,6 +129,27 @@ suite('XML', function () {
|
||||
workspaceTeardown.call(this, this.workspace);
|
||||
});
|
||||
suite('Fields', function () {
|
||||
test('Angle', function () {
|
||||
Blockly.defineBlocksWithJsonArray([
|
||||
{
|
||||
'type': 'field_angle_test_block',
|
||||
'message0': '%1',
|
||||
'args0': [
|
||||
{
|
||||
'type': 'field_angle',
|
||||
'name': 'ANGLE',
|
||||
'angle': 90,
|
||||
},
|
||||
],
|
||||
},
|
||||
]);
|
||||
const block = new Blockly.Block(
|
||||
this.workspace,
|
||||
'field_angle_test_block'
|
||||
);
|
||||
const resultFieldDom = Blockly.Xml.blockToDom(block).childNodes[0];
|
||||
assertNonVariableField(resultFieldDom, 'ANGLE', '90');
|
||||
});
|
||||
test('Checkbox', function () {
|
||||
Blockly.defineBlocksWithJsonArray([
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user