Revert "fix(tests): Enable --debug for test:compile:advanced; fix some errors (#5959)"

This reverts commit 88334bea80.
This commit is contained in:
Beka Westberg
2022-03-01 15:15:29 -08:00
parent 88334bea80
commit 2a0e54759d
2 changed files with 9 additions and 23 deletions

View File

@@ -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);