|
19 | 19 | <div id="failureCount" style="display:none" tests_failed="unset"></div>
|
20 | 20 | <div id="failureMessages" style="display:none"></div>
|
21 | 21 | <!-- Load mocha et al. before bootstrapping so that we can safely
|
22 |
| - goog.require() the test modules that make calls to (e.g.) |
23 |
| - suite() at the top level. --> |
| 22 | + goog.require() the test modules that make calls to (e.g.) |
| 23 | + suite() at the top level. --> |
24 | 24 | <script src="../../node_modules/chai/chai.js"></script>
|
25 | 25 | <script src="../../node_modules/mocha/mocha.js"></script>
|
26 | 26 | <script src="../../node_modules/sinon/pkg/sinon.js"></script>
|
|
31 | 31 | });
|
32 | 32 |
|
33 | 33 | var BLOCKLY_BOOTSTRAP_OPTIONS = {
|
34 |
| - loadCompressed: false, |
35 |
| - depsFiles: ['build/deps.js', 'build/deps.mocha.js'], |
36 |
| - requires: [ |
37 |
| - // Blockly modules needed by tests. |
38 |
| - 'Blockly', |
39 |
| - 'Blockly.libraryBlocks', |
40 |
| - 'Blockly.Dart', |
41 |
| - 'Blockly.Dart.texts', |
42 |
| - 'Blockly.JavaScript', |
43 |
| - 'Blockly.JavaScript.texts', |
44 |
| - 'Blockly.Lua', |
45 |
| - 'Blockly.Lua.texts', |
46 |
| - 'Blockly.PHP', |
47 |
| - 'Blockly.PHP.texts', |
48 |
| - 'Blockly.Python', |
49 |
| - 'Blockly.Python.texts', |
| 34 | + loadCompressed: false, |
| 35 | + depsFiles: ['build/deps.js', 'build/deps.mocha.js'], |
| 36 | + requires: [ |
| 37 | + // Blockly modules needed by tests. |
| 38 | + 'Blockly', |
| 39 | + 'Blockly.libraryBlocks', |
| 40 | + 'Blockly.Dart', |
| 41 | + 'Blockly.Dart.texts', |
| 42 | + 'Blockly.JavaScript', |
| 43 | + 'Blockly.JavaScript.texts', |
| 44 | + 'Blockly.Lua', |
| 45 | + 'Blockly.Lua.texts', |
| 46 | + 'Blockly.PHP', |
| 47 | + 'Blockly.PHP.texts', |
| 48 | + 'Blockly.Python', |
| 49 | + 'Blockly.Python.texts', |
50 | 50 |
|
51 |
| - // Test modules. |
52 |
| - 'Blockly.test.astNode', |
53 |
| - 'Blockly.test.blockChangeEvent', |
54 |
| - 'Blockly.test.blockCreateEvent', |
55 |
| - 'Blockly.test.blockJson', |
56 |
| - 'Blockly.test.blocks', |
57 |
| - 'Blockly.test.comments', |
58 |
| - 'Blockly.test.commentDeserialization', |
59 |
| - 'Blockly.test.connectionChecker', |
60 |
| - 'Blockly.test.connectionDb', |
61 |
| - 'Blockly.test.connection', |
62 |
| - 'Blockly.test.contextMenuItem', |
63 |
| - 'Blockly.test.cursor', |
64 |
| - 'Blockly.test.dropdown', |
65 |
| - 'Blockly.test.event', |
66 |
| - 'Blockly.test.extensions', |
67 |
| - 'Blockly.test.fieldAngle', |
68 |
| - 'Blockly.test.fieldCheckbox', |
69 |
| - 'Blockly.test.fieldColour', |
70 |
| - 'Blockly.test.fieldDropdown', |
71 |
| - 'Blockly.test.fieldImage', |
72 |
| - 'Blockly.test.fieldLabelSerialization', |
73 |
| - 'Blockly.test.fieldLabel', |
74 |
| - 'Blockly.test.fieldMultiline', |
75 |
| - 'Blockly.test.fieldNumber', |
76 |
| - 'Blockly.test.fieldRegistry', |
77 |
| - 'Blockly.test.fieldTest', |
78 |
| - 'Blockly.test.fieldTextInput', |
79 |
| - 'Blockly.test.fieldVariable', |
80 |
| - 'Blockly.test.flyout', |
81 |
| - 'Blockly.test.generator', |
82 |
| - 'Blockly.test.gesture', |
83 |
| - 'Blockly.test.input', |
84 |
| - 'Blockly.test.insertionMarker', |
85 |
| - 'Blockly.test.jsoDeserialization', |
86 |
| - 'Blockly.test.jsoSerialization', |
87 |
| - 'Blockly.test.json', |
88 |
| - 'Blockly.test.keydown', |
89 |
| - 'Blockly.test.lists', |
90 |
| - 'Blockly.test.logicTernary', |
91 |
| - 'Blockly.test.metrics', |
92 |
| - 'Blockly.test.mutator', |
93 |
| - 'Blockly.test.names', |
94 |
| - 'Blockly.test.procedures', |
95 |
| - 'Blockly.test.registry', |
96 |
| - 'Blockly.test.serialization', |
97 |
| - 'Blockly.test.shortcutRegistry', |
98 |
| - 'Blockly.test.theme', |
99 |
| - 'Blockly.test.toolbox', |
100 |
| - 'Blockly.test.tooltip', |
101 |
| - 'Blockly.test.trashcan', |
102 |
| - 'Blockly.test.utils', |
103 |
| - 'Blockly.test.variableMap', |
104 |
| - 'Blockly.test.variableModel', |
105 |
| - 'Blockly.test.variables', |
106 |
| - 'Blockly.test.widgetDiv', |
107 |
| - 'Blockly.test.workspaceComment', |
108 |
| - 'Blockly.test.workspaceSvg', |
109 |
| - 'Blockly.test.workspace', |
110 |
| - 'Blockly.test.xml', |
111 |
| - 'Blockly.test.zoomControls', |
112 |
| - ], |
113 |
| - additionalScripts: [ |
114 |
| - 'msg/messages.js', |
115 |
| - 'tests/playgrounds/screenshot.js', |
116 |
| - 'node_modules/@blockly/dev-tools/dist/index.js', |
117 |
| - ], |
| 51 | + // Test modules. |
| 52 | + 'Blockly.test.astNode', |
| 53 | + 'Blockly.test.blockChangeEvent', |
| 54 | + 'Blockly.test.blockDeleteEvent', |
| 55 | + 'Blockly.test.blockCreateEvent', |
| 56 | + 'Blockly.test.blockJson', |
| 57 | + 'Blockly.test.blocks', |
| 58 | + 'Blockly.test.comments', |
| 59 | + 'Blockly.test.commentDeserialization', |
| 60 | + 'Blockly.test.connectionChecker', |
| 61 | + 'Blockly.test.connectionDb', |
| 62 | + 'Blockly.test.connection', |
| 63 | + 'Blockly.test.contextMenuItem', |
| 64 | + 'Blockly.test.cursor', |
| 65 | + 'Blockly.test.dropdown', |
| 66 | + 'Blockly.test.event', |
| 67 | + 'Blockly.test.extensions', |
| 68 | + 'Blockly.test.fieldAngle', |
| 69 | + 'Blockly.test.fieldCheckbox', |
| 70 | + 'Blockly.test.fieldColour', |
| 71 | + 'Blockly.test.fieldDropdown', |
| 72 | + 'Blockly.test.fieldImage', |
| 73 | + 'Blockly.test.fieldLabelSerialization', |
| 74 | + 'Blockly.test.fieldLabel', |
| 75 | + 'Blockly.test.fieldMultiline', |
| 76 | + 'Blockly.test.fieldNumber', |
| 77 | + 'Blockly.test.fieldRegistry', |
| 78 | + 'Blockly.test.fieldTest', |
| 79 | + 'Blockly.test.fieldTextInput', |
| 80 | + 'Blockly.test.fieldVariable', |
| 81 | + 'Blockly.test.flyout', |
| 82 | + 'Blockly.test.generator', |
| 83 | + 'Blockly.test.gesture', |
| 84 | + 'Blockly.test.input', |
| 85 | + 'Blockly.test.insertionMarker', |
| 86 | + 'Blockly.test.jsoDeserialization', |
| 87 | + 'Blockly.test.jsoSerialization', |
| 88 | + 'Blockly.test.json', |
| 89 | + 'Blockly.test.keydown', |
| 90 | + 'Blockly.test.lists', |
| 91 | + 'Blockly.test.logicTernary', |
| 92 | + 'Blockly.test.metrics', |
| 93 | + 'Blockly.test.mutator', |
| 94 | + 'Blockly.test.names', |
| 95 | + 'Blockly.test.procedures', |
| 96 | + 'Blockly.test.registry', |
| 97 | + 'Blockly.test.serialization', |
| 98 | + 'Blockly.test.shortcutRegistry', |
| 99 | + 'Blockly.test.theme', |
| 100 | + 'Blockly.test.toolbox', |
| 101 | + 'Blockly.test.tooltip', |
| 102 | + 'Blockly.test.trashcan', |
| 103 | + 'Blockly.test.utils', |
| 104 | + 'Blockly.test.variableMap', |
| 105 | + 'Blockly.test.variableModel', |
| 106 | + 'Blockly.test.variables', |
| 107 | + 'Blockly.test.widgetDiv', |
| 108 | + 'Blockly.test.workspaceComment', |
| 109 | + 'Blockly.test.workspaceSvg', |
| 110 | + 'Blockly.test.workspace', |
| 111 | + 'Blockly.test.xml', |
| 112 | + 'Blockly.test.zoomControls', |
| 113 | + ], |
| 114 | + additionalScripts: [ |
| 115 | + 'msg/messages.js', |
| 116 | + 'tests/playgrounds/screenshot.js', |
| 117 | + 'node_modules/@blockly/dev-tools/dist/index.js', |
| 118 | + ], |
118 | 119 | }
|
119 | 120 | </script>
|
120 | 121 | <script src="../bootstrap.js"></script>
|
|
0 commit comments