mirror of
https://github.com/google/blockly.git
synced 2026-01-11 02:47:09 +01:00
* fix(test): Fix advanced compilation test - Fix loading of blocks in `tests/compile/main.js` caused by recent `goog.module`-ification work. - Fix problem caused by ADVANCED_OPTIMISATIONS renaming the Msg property on the fake Blockly object created by the translation-loading hack in `blockly.js`. * chore(build): Reenable advanced compilation test Fixes #5602.
23 lines
545 B
JavaScript
23 lines
545 B
JavaScript
/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
goog.provide('Main');
|
|
// Core
|
|
// Either require 'Blockly.requires', or just the components you use:
|
|
goog.require('Blockly');
|
|
goog.require('Blockly.geras.Renderer');
|
|
goog.require('Blockly.VerticalFlyout');
|
|
// Blocks
|
|
goog.require('Blockly.blocks.all');
|
|
goog.require('Blockly.blocks.testBlocks');
|
|
|
|
Main.init = function() {
|
|
Blockly.inject('blocklyDiv', {
|
|
'toolbox': document.getElementById('toolbox')
|
|
});
|
|
};
|
|
window.addEventListener('load', Main.init);
|