Summary

Harness status: OK

Found 1 tests

Details

ResultTest NameMessage
FailModify inline script element's text after prepare-a-script before evaluationassert_equals: <script>'s textContent should be already modified expected "t.unreached_func(\"This should not be evaluated\")();" but got "\nt.step(() => {\n // When this is evaluated after the stylesheet is loaded,\n // script0's textContent is modified by the async script above,\n // but the evaluated script is still the original script here,\n // not what is overwritten, because \"child text content\" is taken in\n // #prepare-a-script and passed to \"creating a classic script\".\n var s = document.getElementById('script0');\n assert_equals(s.textContent,\n 't.unreached_func(\"This should not be evaluated\")();',\n \"<script>'s textContent should be already modified\");\n t.done();\n });\n"
    at Test.<anonymous> (https://wpt.live/html/semantics/scripting-1/the-script-element/script-text-modifications.html:35:5)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at https://wpt.live/html/semantics/scripting-1/the-script-element/script-text-modifications.html:28:3
Asserts run
Fail
assert_equals("\nt.step(() => {\n    // When this is evaluated after the stylesheet is loaded,\n    // script0's textContent is modified by the async script above,\n    // but the evaluated script is still the original script here,\n    // not what is overwritten, because \"child text content\" is taken in\n    // #prepare-a-script and passed to \"creating a classic script\".\n    var s = document.getElementById('script0');\n    assert_equals(s.textContent,\n                  't.unreached_func(\"This should not be evaluated\")();',\n                  \"<script>'s textContent should be already modified\");\n    t.done();\n  });\n", "t.unreached_func(\"This should not be evaluated\")();", "<script>'s textContent should be already modified")
    at Test.<anonymous> ( /html/semantics/scripting-1/the-script-element/script-text-modifications.html:35:5)