mirror of
https://github.com/google/blockly.git
synced 2026-01-11 19:07:08 +01:00
Remove unused parameters from test helpers (#5032)
This commit is contained in:
@@ -45,7 +45,7 @@ suite('Gesture', function() {
|
||||
|
||||
setup(function() {
|
||||
sharedTestSetup.call(this);
|
||||
defineBasicBlockWithField(this.sharedCleanup);
|
||||
defineBasicBlockWithField();
|
||||
var toolbox = document.getElementById('gesture-test-toolbox');
|
||||
this.workspace = Blockly.inject('blocklyDiv', {toolbox: toolbox});
|
||||
});
|
||||
|
||||
@@ -18,7 +18,7 @@ suite('Key Down', function() {
|
||||
* @param {Blockly.Workspace} workspace The workspace to create a new block on.
|
||||
*/
|
||||
function setSelectedBlock(workspace) {
|
||||
defineStackBlock(this.sharedCleanup);
|
||||
defineStackBlock();
|
||||
Blockly.selected = workspace.newBlock('stack_block');
|
||||
}
|
||||
|
||||
|
||||
@@ -456,7 +456,7 @@ function assertNthCallEventArgEquals(spy, n, instanceType, expectedProperties,
|
||||
assertXmlProperties_(eventArg, xmlProperties);
|
||||
}
|
||||
|
||||
function defineStackBlock(sharedCleanupObj) {
|
||||
function defineStackBlock() {
|
||||
Blockly.defineBlocksWithJsonArray([{
|
||||
"type": "stack_block",
|
||||
"message0": "",
|
||||
@@ -465,7 +465,7 @@ function defineStackBlock(sharedCleanupObj) {
|
||||
}]);
|
||||
}
|
||||
|
||||
function defineRowBlock(sharedCleanupObj) {
|
||||
function defineRowBlock() {
|
||||
Blockly.defineBlocksWithJsonArray([{
|
||||
"type": "row_block",
|
||||
"message0": "%1",
|
||||
@@ -479,7 +479,7 @@ function defineRowBlock(sharedCleanupObj) {
|
||||
}]);
|
||||
}
|
||||
|
||||
function defineStatementBlock(sharedCleanupObj) {
|
||||
function defineStatementBlock() {
|
||||
Blockly.defineBlocksWithJsonArray([{
|
||||
"type": "statement_block",
|
||||
"message0": "%1",
|
||||
@@ -496,7 +496,7 @@ function defineStatementBlock(sharedCleanupObj) {
|
||||
"helpUrl": ""
|
||||
}]);
|
||||
}
|
||||
function defineBasicBlockWithField(sharedCleanupObj) {
|
||||
function defineBasicBlockWithField() {
|
||||
Blockly.defineBlocksWithJsonArray([{
|
||||
"type": "test_field_block",
|
||||
"message0": "%1",
|
||||
|
||||
@@ -20,7 +20,7 @@ suite('Theme', function() {
|
||||
Blockly.registry.typeMap_['theme'] = {};
|
||||
});
|
||||
|
||||
function defineThemeTestBlocks(sharedCleanupObj) {
|
||||
function defineThemeTestBlocks() {
|
||||
Blockly.defineBlocksWithJsonArray([{
|
||||
"type": "stack_block",
|
||||
"message0": "",
|
||||
@@ -117,7 +117,7 @@ suite('Theme', function() {
|
||||
});
|
||||
|
||||
test('Set Theme', function() {
|
||||
defineThemeTestBlocks(this.sharedCleanup);
|
||||
defineThemeTestBlocks();
|
||||
try {
|
||||
var blockStyles = createBlockStyles();
|
||||
var theme = new Blockly.Theme('themeName', blockStyles);
|
||||
|
||||
Reference in New Issue
Block a user