mirror of
https://github.com/google/blockly.git
synced 2026-01-10 18:37:09 +01:00
Revert "fix(tests): Enable --debug for test:compile:advanced; fix some errors (#5959)"
This reverts commit 88334bea80.
This commit is contained in:
@@ -4,33 +4,19 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
goog.module('Main');
|
||||
|
||||
goog.provide('Main');
|
||||
// Core
|
||||
// Either require 'Blockly.requires', or just the components you use:
|
||||
/* eslint-disable-next-line no-unused-vars */
|
||||
const {BlocklyOptions} = goog.requireType('Blockly.BlocklyOptions');
|
||||
const {inject} = goog.require('Blockly.inject');
|
||||
/** @suppress {extraRequire} */
|
||||
goog.require('Blockly');
|
||||
goog.require('Blockly.geras.Renderer');
|
||||
/** @suppress {extraRequire} */
|
||||
goog.require('Blockly.VerticalFlyout');
|
||||
// Blocks
|
||||
/** @suppress {extraRequire} */
|
||||
goog.require('Blockly.libraryBlocks.logic');
|
||||
/** @suppress {extraRequire} */
|
||||
goog.require('Blockly.libraryBlocks.loops');
|
||||
/** @suppress {extraRequire} */
|
||||
goog.require('Blockly.libraryBlocks.math');
|
||||
/** @suppress {extraRequire} */
|
||||
goog.require('Blockly.libraryBlocks.texts');
|
||||
/** @suppress {extraRequire} */
|
||||
goog.require('Blockly.libraryBlocks');
|
||||
goog.require('Blockly.libraryBlocks.testBlocks');
|
||||
|
||||
|
||||
function init() {
|
||||
inject('blocklyDiv', /** @type {BlocklyOptions} */ ({
|
||||
'toolbox': document.getElementById('toolbox')
|
||||
}));
|
||||
Main.init = function() {
|
||||
Blockly.inject('blocklyDiv', {
|
||||
'toolbox': document.getElementById('toolbox')
|
||||
});
|
||||
};
|
||||
window.addEventListener('load', init);
|
||||
window.addEventListener('load', Main.init);
|
||||
|
||||
Reference in New Issue
Block a user