Migrate core/blockly.js to goog.module syntax (#5494)

* Migrate core/blockly.js to ES6 const/let

* Migrate core/blockly.js to goog.module

* Migrate core/blockly.js to named requires

* clang-format core/blockly.js

* Consolidate accessors in core/blockly.js
This commit is contained in:
Aaron Dodson
2021-09-17 14:30:23 -07:00
committed by GitHub
parent 7aab18409f
commit 511ce5df2b
6 changed files with 187 additions and 195 deletions

View File

@@ -172,7 +172,7 @@ suite('Text Input Fields', function() {
FIELD_TEXT_FONTFAMILY: 'sans-serif'
};
field.clickTarget_ = document.createElement('div');
Blockly.mainWorkspace = workspace;
Blockly.common.setMainWorkspace(workspace);
Blockly.WidgetDiv.createDom();
this.stub = sinon.stub(field, 'resizeEditor_');
};