Skip to content

Commit

Permalink
Revert "fix(tests): Enable --debug for test:compile:advanced; fix som…
Browse files Browse the repository at this point in the history
…e errors (google#5959)"

This reverts commit 88334be.
  • Loading branch information
BeksOmega committed Mar 1, 2022
1 parent 88334be commit 2a0e547
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 23 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"test": "tests/run_all_tests.sh",
"test:generators": "tests/scripts/run_generators.sh",
"test:mocha:interactive": "http-server ./ -o /tests/mocha/index.html -c-1",
"test:compile:advanced": "gulp buildAdvancedCompilationTest --debug",
"test:compile:advanced": "gulp buildAdvancedCompilationTest",
"typings": "gulp typings",
"updateGithubPages": "gulp gitUpdateGithubPages"
},
Expand Down
30 changes: 8 additions & 22 deletions tests/compile/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 2a0e547

Please sign in to comment.