refactor(tests): Move and rename prepare.js, blockly.mjs

Since prepare.js and blockly.mjs are going to be needed for running
all tests in uncompiled mode (not just the playgrounds), move them
tests/.  Further, rename prepare.js to bootstrap.js to better reflect
its purpose.
This commit is contained in:
Christopher Allen
2022-05-26 15:46:31 +01:00
parent d7ab81504c
commit dc16094551
5 changed files with 9 additions and 8 deletions

View File

@@ -20,7 +20,7 @@ var path = require('path');
// - tests/scripts/check_metadata.sh
// - tests/scripts/update_metadata.sh
// - blockly_uncompressed.js (for location of deps.js)
// - tests/playgrounds/prepare.js (for location of deps.js)
// - tests/bootstrap.js (for location of deps.js)
// - tests/mocha/index.html (for location of deps.mocha.js)
// Directory to write compiled output to.

View File

@@ -4,15 +4,16 @@
<meta charset="utf-8">
<title>Blockly Playground</title>
<!-- This script loads uncompressed when on localhost and loads compressed when it is being hosted.
Please add any other dependencies to playgrounds/prepare.js.-->
<script src="playgrounds/prepare.js"></script>
<!-- This script loads uncompressed when on localhost and loads
compressed when it is being hosted. Please add any other
dependencies to bootstrap.js. -->
<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 './playgrounds/blockly.mjs';
import Blockly from './blockly.mjs';
const IS_UNCOMPRESSED = Boolean(window.BlocklyLoader); // See prepare.js
const IS_UNCOMPRESSED = Boolean(window.BlocklyLoader); // See bootstrap.js
var workspace = null;
function start() {

View File

@@ -3,14 +3,14 @@
<head>
<meta charset="utf-8">
<title>Advanced Blockly Playground</title>
<script src="prepare.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';
import Blockly from '../blockly.mjs';
'use strict';
function start() {