repeated-imports.any.html

FAILExpected1 of 7 subtests pass1,716 ms

Details

Test
/html/semantics/scripting-1/the-script-element/text-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
promise_rejects_js: Dynamic import of a text module without a type attribute should fail function "function() { throw e; }" threw object "Error: Module not found: http://web-platform.test:8000/html/se…
promise_rejects_js: Dynamic import of a text module without a type attribute should fail function "function() { throw e; }" threw object "Error: Module not found: http://web-platform.test:8000/html/se…
FAILImporting a specifier that previously succeeded with the correct type attribute should fail if the incorrect attribute is later given
promise_test: Unhandled rejection with value: object "Error: Module not found: http://web-platform.test:8000/html/semantics/scripting-1/the-script-element/text-module/file.txt#2"
promise_test: Unhandled rejection with value: object "Error: Module not found: http://web-platform.test:8000/html/semantics/scripting-1/the-script-element/text-module/file.txt#2"
FAILTwo modules of different type with the same specifier can load if the server changes its responses (first text, then JS)
promise_test: Unhandled rejection with value: object "TypeError: Unsupported import attribute type: "text""
promise_test: Unhandled rejection with value: object "TypeError: Unsupported import attribute type: "text""
FAILAn import should succeed even if the same specifier/type attribute pair previously failed due to a MIME type mismatch
promise_rejects_js: Dynamic import of text without a type attribute should fail function "function() { throw e; }" threw "import(./serve-text-then-js.py?key=de26bc59-5b79-4717-bd5a-67ef039b73d3) rejec…
promise_rejects_js: Dynamic import of text without a type attribute should fail function "function() { throw e; }" threw "import(./serve-text-then-js.py?key=de26bc59-5b79-4717-bd5a-67ef039b73d3) rejec…
FAILIf an import previously succeeded for a given specifier/type attribute pair, future uses of that pair should yield the same result
promise_test: Unhandled rejection with value: object "TypeError: Unsupported import attribute type: "text""
promise_test: Unhandled rejection with value: object "TypeError: Unsupported import attribute type: "text""
FAILTwo modules of different type with the same specifier can load if the server changes its responses (first JS, then text)
promise_test: Unhandled rejection with value: object "TypeError: Unsupported import attribute type: "text""
promise_test: Unhandled rejection with value: object "TypeError: Unsupported import attribute type: "text""
PASSIf an import previously succeeded for a given specifier with no type attribute, future uses of the same values should yield the same result