mirror of
https://github.com/google/blockly.git
synced 2026-01-07 09:00:11 +01:00
chore: fix more lint (#5700)
* chore: fix 918 violations of comma-dangle rule * chore: fix 2 violations of comma-spacing * chore: fix 13 violations of padded-blocks * chore: fix 50 violations of block-spacing * chore: fix one violation of semi-spacing * chore: fix 4 violations of space-before-blocks * chore: fix 38 violations of object-curly-spacing * chore: fix 30 violations of key-spacing * chore: fix 3 violations of quote-props * chore: fix 5 violations of arrow-parens * chore: fix 8 violations of no-tabs * chore: allow uncommented helper functions in mocha tests * chore: fix several more lint errors * chore: tweak eslint configuration in core and tests * chore: rebuild for tests
This commit is contained in:
@@ -38,7 +38,7 @@ suite('XML', function() {
|
||||
{
|
||||
"type": "empty_block",
|
||||
"message0": "",
|
||||
"args0": []
|
||||
"args0": [],
|
||||
},
|
||||
]);
|
||||
this.complexXmlText = [
|
||||
@@ -95,8 +95,8 @@ suite('XML', function() {
|
||||
{
|
||||
"type": "field_angle",
|
||||
"name": "ANGLE",
|
||||
"angle": 90
|
||||
}
|
||||
"angle": 90,
|
||||
},
|
||||
],
|
||||
}]);
|
||||
const block = new Blockly.Block(this.workspace,
|
||||
@@ -112,8 +112,8 @@ suite('XML', function() {
|
||||
{
|
||||
"type": "field_checkbox",
|
||||
"name": "CHECKBOX",
|
||||
"checked": true
|
||||
}
|
||||
"checked": true,
|
||||
},
|
||||
],
|
||||
}]);
|
||||
const block = new Blockly.Block(this.workspace,
|
||||
@@ -129,8 +129,8 @@ suite('XML', function() {
|
||||
{
|
||||
"type": "field_colour",
|
||||
"name": "COLOUR",
|
||||
"colour": '#000099'
|
||||
}
|
||||
"colour": '#000099',
|
||||
},
|
||||
],
|
||||
}]);
|
||||
const block = new Blockly.Block(this.workspace,
|
||||
@@ -149,18 +149,18 @@ suite('XML', function() {
|
||||
"options": [
|
||||
[
|
||||
"a",
|
||||
"A"
|
||||
"A",
|
||||
],
|
||||
[
|
||||
"b",
|
||||
"B"
|
||||
"B",
|
||||
],
|
||||
[
|
||||
"c",
|
||||
"C"
|
||||
]
|
||||
]
|
||||
}
|
||||
"C",
|
||||
],
|
||||
],
|
||||
},
|
||||
],
|
||||
}]);
|
||||
const block = new Blockly.Block(this.workspace,
|
||||
@@ -179,8 +179,8 @@ suite('XML', function() {
|
||||
"src": "https://blockly-demo.appspot.com/static/tests/media/a.png",
|
||||
"width": 32,
|
||||
"height": 32,
|
||||
"alt": "A"
|
||||
}
|
||||
"alt": "A",
|
||||
},
|
||||
],
|
||||
}]);
|
||||
const block = new Blockly.Block(this.workspace,
|
||||
@@ -196,8 +196,8 @@ suite('XML', function() {
|
||||
{
|
||||
"type": "field_label",
|
||||
"name": "LABEL",
|
||||
"text": "default"
|
||||
}
|
||||
"text": "default",
|
||||
},
|
||||
],
|
||||
}]);
|
||||
const block = new Blockly.Block(this.workspace,
|
||||
@@ -213,8 +213,8 @@ suite('XML', function() {
|
||||
{
|
||||
"type": "field_label_serializable",
|
||||
"name": "LABEL",
|
||||
"text": "default"
|
||||
}
|
||||
"text": "default",
|
||||
},
|
||||
],
|
||||
}]);
|
||||
const block = new Blockly.Block(this.workspace,
|
||||
@@ -230,8 +230,8 @@ suite('XML', function() {
|
||||
{
|
||||
"type": "field_number",
|
||||
"name": "NUMBER",
|
||||
"value": 97
|
||||
}
|
||||
"value": 97,
|
||||
},
|
||||
],
|
||||
}]);
|
||||
const block = new Blockly.Block(this.workspace,
|
||||
@@ -247,8 +247,8 @@ suite('XML', function() {
|
||||
{
|
||||
"type": "field_input",
|
||||
"name": "TEXT",
|
||||
"text": "default"
|
||||
}
|
||||
"text": "default",
|
||||
},
|
||||
],
|
||||
}]);
|
||||
const block = new Blockly.Block(this.workspace,
|
||||
@@ -265,9 +265,9 @@ suite('XML', function() {
|
||||
{
|
||||
'type': 'field_variable',
|
||||
'name': 'VAR',
|
||||
'variable': 'item'
|
||||
}
|
||||
]
|
||||
'variable': 'item',
|
||||
},
|
||||
],
|
||||
}]);
|
||||
});
|
||||
test('Variable Trivial', function() {
|
||||
@@ -390,9 +390,9 @@ suite('XML', function() {
|
||||
{
|
||||
'type': 'field_variable',
|
||||
'name': 'VAR',
|
||||
'variable': 'item'
|
||||
}
|
||||
]
|
||||
'variable': 'item',
|
||||
},
|
||||
],
|
||||
}]);
|
||||
});
|
||||
teardown(function() {
|
||||
@@ -613,9 +613,9 @@ suite('XML', function() {
|
||||
{
|
||||
'type': 'field_variable',
|
||||
'name': 'VAR',
|
||||
'variable': 'item'
|
||||
}
|
||||
]
|
||||
'variable': 'item',
|
||||
},
|
||||
],
|
||||
}]);
|
||||
});
|
||||
teardown(function() {
|
||||
@@ -700,7 +700,7 @@ suite('XML', function() {
|
||||
this.jsonInit({
|
||||
message0: 'test',
|
||||
});
|
||||
}
|
||||
},
|
||||
};
|
||||
this.workspace = new Blockly.Workspace();
|
||||
});
|
||||
@@ -723,7 +723,7 @@ suite('XML', function() {
|
||||
suite('workspaceToDom -> domToWorkspace -> workspaceToDom', function() {
|
||||
setup(function() {
|
||||
const options = {
|
||||
comments: true
|
||||
comments: true,
|
||||
};
|
||||
this.renderedWorkspace = Blockly.inject('blocklyDiv', options);
|
||||
this.headlessWorkspace =
|
||||
@@ -780,7 +780,7 @@ suite('XML', function() {
|
||||
name: name,
|
||||
getId: function() {
|
||||
return varId;
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
const generatedXml = Blockly.Xml.domToText(
|
||||
|
||||
Reference in New Issue
Block a user