fix(tests): Fix & reenable the advanced compilation test (#5781)

* 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.
This commit is contained in:
Christopher Allen
2021-12-03 18:14:19 +00:00
committed by GitHub
parent b52c0179cb
commit 3d7262fed2
4 changed files with 6 additions and 14 deletions

View File

@@ -11,16 +11,8 @@ goog.require('Blockly');
goog.require('Blockly.geras.Renderer');
goog.require('Blockly.VerticalFlyout');
// Blocks
goog.require('Blockly.Constants.Logic');
goog.require('Blockly.Constants.Loops');
goog.require('Blockly.Constants.Math');
goog.require('Blockly.Constants.TestBlocks');
goog.require('Blockly.Constants.Text');
goog.require('Blockly.Constants.Lists');
goog.require('Blockly.Constants.Colour');
goog.require('Blockly.Constants.Variables');
goog.require('Blockly.Constants.VariablesDynamic');
goog.require('Blockly.blocks.procedures');
goog.require('Blockly.blocks.all');
goog.require('Blockly.blocks.testBlocks');
Main.init = function() {
Blockly.inject('blocklyDiv', {

View File

@@ -9,7 +9,7 @@
*/
'use strict';
goog.provide('Blockly.Constants.TestBlocks');
goog.provide('Blockly.blocks.testBlocks');
goog.require('Blockly');