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 |
| FAIL | Two modules of different type with the same specifier can load if the server changes its responses assert_equals: expected (string) "hello" but got (object) object "[object Object]" |
| FAIL | An import should succeed even if the same specifier/module type pair previously failed due to a MIME type mismatch assert_unreached: Should have rejected: Dynamic import of JSON with a JS type content should fail Reached unreachable code |
| 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=5be44e68-42c4-4a3f-b621-b7ffeb11198a) 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=6a15a4c2-e6fc-4bb4-af52-79e2140c681d) 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 |