mirror of
https://github.com/google/blockly.git
synced 2026-01-08 17:40:09 +01:00
refactor(tests): Migrate generator tests to import shims; delete bootstrap.js (#7414)
* refactor(tests): Use shims instead of bootstrap to load Blockly
- Modify tests/generators/index.html to import the test shims
instead of using bootstrap.js to load Blockly.
- Modify test/generators/webdriver.js to have it wait for the
workspace to exist before calling loadSelected(). There was
previously a race which index.html had been winning, but
now webdriver.js is winning (and the tests failing because
there is no workspace yet when start() is called.
* chore(tests): Delete bootstrap.js etc.
- Delete bootstrap.js, bootstrap_helper.js, and bootstrap_done.mjs.
- Remove remaining references to bootstrap.js
* refactor(build): Remove deps npm script
buildDeps is now only needed by buildCompiled, not ever for
runnning in uncompressed mode, so:
- Remove the deps gulp task (and the deps npm script.
- Have the minify task run buildJavaScript and buildDeps directly.
Additionally, the buildAdvanceCompilationTest target hasn't
needed deps.js for some time (if ever), so skip having it run
buildDeps entirely.
* refactor(build): Repatriate DEPS_FILE to build_tasks.js
Since this is no longer used anywhere else it doesn't need to
live in common.js.
* fix(scripts): Remove vestigial references to deps.mocha.js
* docs(tests): Add additional explanatory note
This commit is contained in:
committed by
GitHub
parent
7e9d1eb3ba
commit
be809d9d98
@@ -24,14 +24,12 @@
|
||||
"build-strict-log": "npm run build:strict > build-debug.log 2>&1 && tail -3 build-debug.log",
|
||||
"build:compiled": "exit 1 # Deprecated; use \"npm run minify\" instead.",
|
||||
"build:compressed": "exit 1 # Deprecated; use \"npm run minify\" instead.",
|
||||
"build:deps": "exit 1 # Deprecated; use \"npm run deps\" instead.",
|
||||
"build:js": "exit 1 # Deprecated; use \"npm run tsc\" instead.",
|
||||
"build:langfiles": "exit 1 # Deprecated; use \"npm run langfiles\" instead.",
|
||||
"bump": "npm --no-git-tag-version version 4.$(date +'%Y%m%d').0",
|
||||
"clean": "gulp clean",
|
||||
"deployDemos": "npm ci && gulp deployDemos",
|
||||
"deployDemos:beta": "npm ci && gulp deployDemosBeta",
|
||||
"deps": "gulp deps",
|
||||
"docs": "gulp docs",
|
||||
"format": "prettier --write .",
|
||||
"format:check": "prettier --check .",
|
||||
|
||||
Reference in New Issue
Block a user