Commit Graph

4 Commits

Author SHA1 Message Date
Christopher Allen
de776f5629 fix(tests): Don't use template literals in bootstrap.js
This is necessary (but not necessarily sufficient) to be able to
load the file in IE 11.
2022-06-14 23:33:48 +01:00
Christopher Allen
3b45606f92 fix(tests): Use the blockly repository path for all script src= URLs
Previously the (non-advanced) playground was only correctly loadging
on localhost because you can put an arbitrary number of "../"s in front
of a relative URL and it just takes you to the root directory.
2022-06-14 23:33:48 +01:00
Christopher Allen
74d6be111c feat(tests): Introduce BLOCKLY_BOOTSTRAP_OPTIONS
Provide a mechanism for web pages that use bootstrap.js to control
what is loaded and how.
2022-06-14 23:33:48 +01:00
Christopher Allen
dc16094551 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.
2022-06-14 23:33:39 +01:00