html/semantics/scripting-1/the-script-element/module/
445 / 456 WPT subtests passing
- Failed
- 11
- Timed out
- 0
- Not run
- 0
- Test files
- 116
- Blocking files
- 0
Chrome 429 / 456 WPT subtests passing on the same files, none blocking
Tests
3 directories, 73 test files here| Directory | Subtests passing | Chrome | Test files | Standing |
|---|---|---|---|---|
dynamic- | 198 / 209 | 183 / 209 | 36 | none blocking |
import- | 52 / 52 | 51 / 52 | 6 | none blocking |
top- | 4 / 4 | 4 / 4 | 1 | none blocking |
Each test file opens in place to its subtests, and each subtest that did not pass to its message.
Test fileSubtests passingChromeFailedStanding
charset-01.html 6 / 6 passingChrome 6 / 60 failedClean
6 passing subtests
- UTF-8 module script
- UTF-8 module script with wrong charset in attribute
- UTF-8 module script with wrong charset in Content-Type
- Non-UTF-8 module script
- Non-UTF-8 module script with charset in attribute
- Non-UTF-8 module script with charset in Content-Type
charset-02.html 3 / 3 passingChrome 3 / 30 failedClean
3 passing subtests
- UTF-8 module script with UTF-8 BOM
- UTF-16 module script with UTF-16BE BOM
- UTF-16 module script with UTF-16LE BOM
charset-03.html 4 / 4 passingChrome 4 / 40 failedClean
4 passing subtests
- UTF-8 imported module script
- UTF-8 imported module script with wrong charset in Content-Type
- Non-UTF-8 imported module script
- Non-UTF-8 imported module script with charset in Content-Type
choice-of-error-1.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Parse errors in different files should be reported depending on different roots
choice-of-error-2.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Instantiation errors in different files should be reported depending on different roots
choice-of-error-3.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Evaluation errors are cached in intermediate module scripts
compilation-error-1.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Test that syntax errors lead to SyntaxError events on window, and that exceptions are remembered.
compilation-error-2.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Test that syntax errors lead to SyntaxError events on window, and that exceptions are remembered.
concurrent-failed-imports.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- Multiple concurrent <script type=module> loads of a failing module should all fail but only fetch once
- A joined <script type=module> load is notified with its own fetch result even if a sibling's error handler re-inserts a script for the same specifier
credentials.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Modules should be loaded with or without the credentials based on the same-origin-ness and the crossOrigin attribute
crossorigin.html 8 / 8 passingChrome 8 / 80 failedClean
8 passing subtests
- Root module, Error in CORS-same-origin script
- Root module, Blocked script download, missing CORS ACAO header
- Root module, Blocked script download, crossorigin attribute with missing CORS ACAO header
- Root module, Blocked script download, mismatched CORS ACAO header
- Imported module, Error in CORS-same-origin script
- Imported module, Blocked script download, missing CORS ACAO header
- Imported module, Blocked script download, crossorigin attribute with missing CORS ACAO header
- Imported module, Blocked script download, mismatched CORS ACAO header
currentScript-null.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- currentScript on script type=module should be all null
custom-element-exception.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Test that exceptions from the constructor of a custom element inside a module are propagated as expected.
duplicated-imports-1.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Duplicated imports with the same specifier
duplicated-imports-2.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Duplicated imports with the different specifier
error-and-slow-dependency.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- module graph with a syntax error should not evaulate but should not crash UA.
error-type-1.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- network error has higher priority than parse error
error-type-2.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- parse error has higher priority than instantiation error
error-type-3.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- instantiation error has higher priority than evaluation error
errorhandling.html 5 / 5 passingChrome 5 / 50 failedClean
5 passing subtests
- IFrame test: 'iframe_parseError_Root'
- IFrame test: 'iframe_parseError_Dependent'
- IFrame test: 'iframe_parseError_DependentMultiple'
- External root module with non-script mimetype
- Module with imported non-script mimetype
evaluation-error-1.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Test that exceptions during evaluation lead to error events on window, and that exceptions are remembered.
evaluation-error-2.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Test that ill-founded cyclic dependencies cause ReferenceError during evaluation, which leads to error events on window, and that exceptions are remembered.
evaluation-error-3.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Test that exceptions during evaluation lead to error events on window, and that exceptions are remembered.
evaluation-error-4.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Test that exceptions during evaluation lead to error events on window, and that exceptions are remembered.
evaluation-error-5.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Test for the inline module script error that reports wrong line
execorder.html 6 / 6 passingChrome 6 / 60 failedClean
6 passing subtests
- Unordered module script execution (parsed, unordered #1)
- Unordered module script execution (parsed, unordered #2)
- Unordered module script execution (dynamic, unordered #1)
- Unordered module script execution (dynamic, unordered #2)
- Interlaced module/non-module script execution (parsed, async-ordered)
- Interlaced module/non-module script execution (dynamic, async-ordered)
fetch-error-1.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Test that failure to fetch root leads to error event on script.
fetch-error-2.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Test that failure to fetch dependency leads to error event on script.
import-subgraph-404.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Import a module graph w/ sub-graph 404.
imports.html 5 / 5 passingChrome 5 / 50 failedClean
5 passing subtests
- Import a module that validly imports itself
- Import a module with a valid cyclical module dependency
- Import a simple module
- Import a simple module, renamed
- Import the same module multiple times
inactive-context-import.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- dynamic import from inactive context should not crash
inline-async-execorder.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Inline async module script execution order
inline-async-inserted-execorder.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Inline async="" module scripts execute or throw parse errors asynchronously
inline-async-onload.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Inline async module script vs. onload
inline-defer-onload.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Inline defer module script vs. onload
inline-no-async-onload.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Inline module script vs. onload
instantiation-error-1.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Test that missing exports lead to SyntaxError events on window and load events on script
instantiation-error-2.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Test that missing exports lead to SyntaxError events on window and load events on script
instantiation-error-3.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Test that unresolvable cycles lead to SyntaxError events on window and load events on script
instantiation-error-4.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Test that loading a graph in which a module is already errored results in an error.
instantiation-error-5.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Test that loading a graph in which a module is already errored results an error.
instantiation-error-6.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Test that ambiguous star exports lead to an instantiation error and that the correct module is blamed.
instantiation-error-7.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Test that ambiguous star exports lead to an instantiation error, even when discovered through a star export, and that the correct module is blamed.
instantiation-error-8.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Instantiate attempt on a tree w/ previously instantiate-failed tree as a sub-tree shouldn't crash.
integrity.html 3 / 3 passingChrome 3 / 30 failedClean
3 passing subtests
- The integrity attribute must have no affect on inline module scripts
- The integrity attribute must be verified on the top-level of a module and allow it to execute when it matches
- The integrity attribute must be verified on the top-level of a module and not allow it to execute when there's a mismatch
late-namespace-request.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Test the situation where a module is instantiated without the need for a namespace object, but later on a different module requests the namespace.
late-star-export-request.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Test the situation where a module is instantiated without a use of its star-exports, but later on a different module requests them.
load-error-events-inline.html 8 / 8 passingChrome 8 / 80 failedClean
8 passing subtests
- src, 200, parser-inserted, defer, no async
- src, 200, parser-inserted, no defer, async
- src, 200, not parser-inserted, no defer, no async, no non-blocking
- src, 200, not parser-inserted, no defer, async
- src, 404, parser-inserted, defer, no async
- src, 404, parser-inserted, no defer, async
- src, 404, not parser-inserted, no defer, no async, no non-blocking
- src, 404, not parser-inserted, no defer, async
load-error-events.html 8 / 8 passingChrome 8 / 80 failedClean
8 passing subtests
- src, 200, parser-inserted, defer, no async
- src, 200, parser-inserted, no defer, async
- src, 200, not parser-inserted, no defer, no async, no non-blocking
- src, 200, not parser-inserted, no defer, async
- src, 404, parser-inserted, defer, no async
- src, 404, parser-inserted, no defer, async
- src, 404, not parser-inserted, no defer, no async, no non-blocking
- src, 404, not parser-inserted, no defer, async
module-import-referrer-base-url.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- The document's base URL differs from the document URL
- Static imports from inline modules in a document with a base URL override
module-import-referrer.html 4 / 4 passingChrome 4 / 40 failedClean
4 passing subtests
- Static imports from inline modules in the HTML document
- Dynamic imports from inline modules in the HTML document
- Static imports from external modules
- Dynamic imports from external modules
module-vs-script-1.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Test that evaluating something as classic script does not prevent it from being evaluated as module script.
module-vs-script-2.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Test that evaluating something as classic script does not prevent it from being evaluated as module script.
modulepreload-cross-origin-referrerpolicy.sub.html 7 / 7 passingChrome 7 / 70 failedClean
7 passing subtests
- Cross-origin modulepreload with default referrer policy should load
- Cross-origin modulepreload with no-referrer policy should load
- Cross-origin modulepreload with origin policy should load
- Cross-origin modulepreload with same-origin policy should load
- Cross-origin modulepreload with strict-origin policy should load
- Cross-origin modulepreload with strict-origin-when-cross-origin policy should load
- Cross-origin modulepreload with unsafe-url policy should load
modulepreload-inline-referrerpolicy.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Inline modulepreload elements should respect the referrerpolicy attribute
modulepreload-referrer-check.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Modulepreload should send a referrer header
modulepreload-referrerpolicy.html 7 / 7 passingChrome 7 / 70 failedClean
7 passing subtests
- Modulepreload should use default referrer policy
- Modulepreload with no-referrer policy should not send referrer
- Modulepreload with origin policy should send origin-only referrer
- Modulepreload with same-origin policy should send full referrer for same-origin requests
- Modulepreload with strict-origin policy should send origin-only referrer
- Modulepreload with strict-origin-when-cross-origin policy should send full referrer for same-origin requests
- Modulepreload with unsafe-url policy should send full referrer
nested-imports.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- should load all modules successfully
nomodule-attribute.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Test that 'nomodule' has the desired effect on classic scripts, but no effect on module scripts.
referrer-no-referrer.sub.html 6 / 6 passingChrome 6 / 60 failedClean
6 passing subtests
- Importing a same-origin top-level script with the no-referrer policy.
- Importing a remote-origin top-level script with the no-referrer policy.
- Importing a same-origin descendant script from a same-origin top-level script with the no-referrer policy.
- Importing a remote-origin descendant script from a same-origin top-level script with the no-referrer policy.
- Importing a remote-origin descendant script from a remote-origin top-level script with the no-referrer policy.
- Importing a same-origin descendant script from a remote-origin top-level script with the no-referrer policy.
referrer-origin-when-cross-origin.sub.html 6 / 6 passingChrome 6 / 60 failedClean
6 passing subtests
- Importing a same-origin top-level script with the origin-when-cross-origin policy.
- Importing a remote-origin top-level script with the origin-when-cross-origin policy.
- Importing a same-origin descendant script from a same-origin top-level script with the origin-when-cross-origin policy.
- Importing a remote-origin descendant script from a same-origin top-level script with the origin-when-cross-origin policy.
- Importing a remote-origin descendant script from a remote-origin top-level script with the origin-when-cross-origin policy.
- Importing a same-origin descendant script from a remote-origin top-level script with the origin-when-cross-origin policy.
referrer-origin.sub.html 6 / 6 passingChrome 6 / 60 failedClean
6 passing subtests
- Importing a same-origin top-level script with the origin policy.
- Importing a remote-origin top-level script with the origin policy.
- Importing a same-origin descendant script from a same-origin top-level script with the origin policy.
- Importing a remote-origin descendant script from a same-origin top-level script with the origin policy.
- Importing a remote-origin descendant script from a remote-origin top-level script with the origin policy.
- Importing a same-origin descendant script from a remote-origin top-level script with the origin policy.
referrer-policy-for-descendants.sub.html 9 / 9 passingChrome 9 / 90 failedClean
9 passing subtests
- Parent module delivered with `no-referrer-when-downgrade` policy importing a same-origin descendant script.
- Parent module delivered with `origin` policy importing a same-origin descendant script.
- Parent module delivered with `same-origin` policy importing a same-origin descendant script.
- Parent module delivered with `origin-when-cross-origin` policy importing a cross-origin descendant script.
- Remote parent module delivered with `origin-when-cross-origin` policy importing a same-origin-to-parent-module descendant script.
- Remote parent module delivered with `same-origin` policy importing a same-origin-to-parent-module descendant script.
- Remote parent module delivered with `origin-when-cross-origin` policy importing a cross-origin-to-parent-module descendant script.
- Remote parent module delivered with `same-origin` policy importing a cross-origin-to-parent-module descendant script.
- Parent module delivered with invalid policy importing a same-origin descendant script.
referrer-same-origin.sub.html 6 / 6 passingChrome 6 / 60 failedClean
6 passing subtests
- Importing a same-origin top-level script with the same-origin policy.
- Importing a remote-origin top-level script with the same-origin policy.
- Importing a same-origin descendant script from a same-origin top-level script with the same-origin policy.
- Importing a remote-origin descendant script from a same-origin top-level script with the same-origin policy.
- Importing a remote-origin descendant script from a remote-origin top-level script with the same-origin policy.
- Importing a same-origin descendant script from a remote-origin top-level script with the same-origin policy.
referrer-strict-policies.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- The strict-* referrer policies compare the trustworthiness of a request's referrer string against its URL
referrer-unsafe-url.sub.html 6 / 6 passingChrome 6 / 60 failedClean
6 passing subtests
- Importing a same-origin top-level script with the unsafe-url policy.
- Importing a remote-origin top-level script with the unsafe-url policy.
- Importing a same-origin descendant script from a same-origin top-level script with the unsafe-url policy.
- Importing a remote-origin descendant script from a same-origin top-level script with the unsafe-url policy.
- Importing a remote-origin descendant script from a remote-origin top-level script with the unsafe-url policy.
- Importing a same-origin descendant script from a remote-origin top-level script with the unsafe-url policy.
script-for-event.html 18 / 18 passingChrome 18 / 180 failedClean
18 passing subtests
- Module scripts with for and event attributes
- Script 0
- Script 1
- Script 2
- Script 3
- Script 4
- Script 5
- Script 6
- Script 7
- Script 8
- Script 9
- Script 10
- Script 11
- Script 12
- Script 13
- Script 14
- Script 15
- Script 16
single-evaluation-1.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Test that a module is evaluated only once, and that 'this' is undefined (because of strict mode).
single-evaluation-2.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Test that a module is evaluated only once, and that 'this' is undefined (because of strict mode).
slow-cycle.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- module graph with cycles load even if part of the graph loads slow
specifier-error.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Test that invalid module specifier leads to TypeError on window.
type.html 6 / 6 passingChrome 6 / 60 failedClean
6 passing subtests
- type="module"
- type="MODULE"
- type="Module"
- type="module "
- type=" module"
- type=" module "