repeated-imports.any.html

FAILExpected2 of 8 subtests pass1,066 ms

Details

Test
/html/semantics/scripting-1/the-script-element/json-module/repeated-imports.any.html
Harness
OK

Subtests

StatusSubtestMessage
FAILImporting 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
assert_unreached: Should have rejected: Dynamic import of a JSON module without a type attribute should fail Reached unreachable code
FAILImporting 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
assert_unreached: Should have rejected: Dynamic import should fail with the type attribute missing even if the same specifier previously succeeded Reached unreachable code
FAILTwo 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]"
assert_equals: expected (string) "hello" but got (object) object "[object Object]"
FAILAn 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
assert_unreached: Should have rejected: Dynamic import of JSON with a JS type content should fail Reached unreachable code
FAILAn 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…
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…
FAILAn 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…
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…
PASSIf an import previously succeeded for a given specifier/module type attribute pair, future uses of that pair should yield the same result
PASSMultiple import calls with the same specifier should be joined into a single fetch