repeated-imports.any.html
Details
- Test
/html/semantics/scripting-1/the-script-element/json-module/repeated-imports.any.html- Harness
- OK
Subtests
| Status | Subtest |
|---|---|
| FAIL | Importing a specifier that previously failed due to an incorrect type attribute can succeed if the correct attribute is later given assert_unreached: Should have rejected: Dynamic import of a JSON module without a type attribute should fail Reached unreachable code |
| FAIL | Importing a specifier that previously succeeded with the correct type attribute should fail if the incorrect attribute is later given assert_unreached: Should have rejected: Dynamic import should fail with the type attribute missing even if the same specifier previously succeeded Reached unreachable code |
| PASS | Two modules of different type with the same specifier can load if the server changes its responses |
| FAIL | An import should succeed even if the same specifier/module type pair previously failed due to a MIME type mismatch promise_rejects_js: Dynamic import of JSON with a JS type content should fail function "function() { throw e; }" threw "import(../serve-custom-response.py?key=6c82e73b-4582-40a0-8fe7-1d04deb8d845) rej… |
| FAIL | An import should succeed even if the same specifier/module type pair previously failed due to a HTTP error promise_rejects_js: Dynamic import of JSON should fail with a 404 response function "function() { throw e; }" threw "import(../serve-custom-response.py?key=6526ddc1-ef80-4d81-bcb1-1d58b0eaaebe) reject… |
| FAIL | An import should succeed even if the same specifier/module type pair previously failed due to a network error promise_rejects_js: Dynamic import of JSON should fail with a network error function "function() { throw e; }" threw "import(../serve-custom-response.py?key=54d9473c-99e3-4c78-a2de-76229634229d) rejec… |
| PASS | If an import previously succeeded for a given specifier/module type attribute pair, future uses of that pair should yield the same result |
| PASS | Multiple import calls with the same specifier should be joined into a single fetch |