repeated-imports.any.html

FAILExpected1 of 7 subtests pass1,252 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: "import(./serve-text-then-js.py?key=81bf1d56-a431-467b-9528-9f4588c0a443) rejected: TypeError: module refused for http://web-platform.test:8000/html/seman…
promise_test: Unhandled rejection with value: "import(./serve-text-then-js.py?key=81bf1d56-a431-467b-9528-9f4588c0a443) rejected: TypeError: module refused for http://web-platform.test:8000/html/seman…
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=0f99e508-2275-4947-a47a-0b27eae35768) 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=0f99e508-2275-4947-a47a-0b27eae35768) 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: "import(./serve-text-then-js.py?key=4c780279-b26a-473e-8ab5-8cb2e3dac759) rejected: TypeError: module refused for http://web-platform.test:8000/html/seman…
promise_test: Unhandled rejection with value: "import(./serve-text-then-js.py?key=4c780279-b26a-473e-8ab5-8cb2e3dac759) rejected: TypeError: module refused for http://web-platform.test:8000/html/seman…
FAILTwo modules of different type with the same specifier can load if the server changes its responses (first JS, then text)
assert_equals: expected "hello" but got "world"
assert_equals: expected "hello" but got "world"
PASSIf an import previously succeeded for a given specifier with no type attribute, future uses of the same values should yield the same result