refactor(tests): Use additionalScripts for all script loading

Use additionalScripts option for all script loading in
playground.html and advanced_playground.html.
This commit is contained in:
Christopher Allen
2022-06-10 19:54:27 +01:00
parent 7d29a3f9bb
commit df7a2fd6ca
2 changed files with 21 additions and 6 deletions

View File

@@ -7,9 +7,16 @@
<!-- This script loads uncompressed when on localhost and loads
compressed when it is being hosted. Please add any other
dependencies to bootstrap.js. -->
<script>
var BLOCKLY_BOOTSTRAP_OPTIONS = {
additionalScripts: [
'msg/messages.js',
'tests/playgrounds/screenshot.js',
'node_modules/@blockly/dev-tools/dist/index.js',
],
}
</script>
<script src="bootstrap.js"></script>
<script src="playgrounds/screenshot.js"></script>
<script src="../node_modules/@blockly/dev-tools/dist/index.js"></script>
<script type=module>
import Blockly from './blockly.mjs';

View File

@@ -3,11 +3,19 @@
<head>
<meta charset="utf-8">
<title>Advanced Blockly Playground</title>
<script>
var BLOCKLY_BOOTSTRAP_OPTIONS = {
additionalScripts: [
'msg/messages.js',
'tests/playgrounds/screenshot.js',
'tests/themes/test_themes.js',
'node_modules/@blockly/dev-tools/dist/index.js',
'node_modules/@blockly/theme-modern/dist/index.js',
],
}
</script>
<script src="../bootstrap.js"></script>
<script src="./screenshot.js"></script>
<script src="../themes/test_themes.js"></script>
<script src="../../node_modules/@blockly/dev-tools/dist/index.js"></script>
<script src="../../node_modules/@blockly/theme-modern/dist/index.js"></script>
<script type="module">
import Blockly from '../blockly.mjs';