mirror of
https://github.com/google/blockly.git
synced 2026-01-10 10:27:08 +01:00
* refactor(tests): Migrate tests/compile/main.js to goog.module
* feat(tests): Enable --debug for test:compile:advanced; demote errors
* Enable the --debug flag when running the
buildAdvancedCompilationTest gulp task.
* Remove partialAlias diagnostic group from `JSC_ERROR`, demoting
JSC_PARTIAL_NAMESPACE to warning.
Reverts "Revert 'fix(tests): Enable --debug for test:compile:advanced;
fix some errors (#5959)'".
37 lines
1.1 KiB
JavaScript
37 lines
1.1 KiB
JavaScript
/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
goog.module('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.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.testBlocks');
|
|
|
|
|
|
function init() {
|
|
inject('blocklyDiv', /** @type {BlocklyOptions} */ ({
|
|
'toolbox': document.getElementById('toolbox')
|
|
}));
|
|
};
|
|
window.addEventListener('load', init);
|