-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1651513 [wpt PR 24521] - HTML: Add tentative tests for speculativ…
…e HTML parsing, a=testonly Automatic update from web-platform-tests HTML: Add tentative tests for speculative HTML parsing See whatwg/html#5624 -- wpt-commits: 9afacb73a04c1f33837eb0a7ffcd9ec16c9d477f wpt-pr: 24521
- Loading branch information
1 parent
dd5fcdf
commit 82c3eca
Showing
216 changed files
with
4,341 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import time | ||
|
||
def main(request, response): | ||
time.sleep(2) | ||
delay = float(request.GET.first(b"delay", 2000)) / 1000 | ||
time.sleep(delay) | ||
return 200, [], b'' |
25 changes: 25 additions & 0 deletions
25
...ntax/speculative-parsing/generated/document-write/base-href-script-src.tentative.sub.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/speculative-parsing/tools/generate.py | ||
--> | ||
<meta charset=utf-8> | ||
<title>Speculative parsing, document.write(): base-href-script-src</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script src=/common/utils.js></script> | ||
<script src=/html/syntax/speculative-parsing/resources/speculative-parsing-util.js></script> | ||
<script> | ||
setup({single_test: true}); | ||
const uuid = token(); | ||
expect_fetched_onload(uuid, true) | ||
.then(compare_with_nonspeculative(uuid, 'base-href-script-src', true)) | ||
.then(done); | ||
document.write(` | ||
<script src="/common/slow.py?delay=1500"><\/script> | ||
<script> | ||
document.write('<plaintext>'); | ||
<\/script> | ||
<\!-- speculative case in document.write --> | ||
<base href=//{{domains[www1]}}:{{ports[http][0]}}><script src="/html/syntax/speculative-parsing/resources/stash.py?action=put&uuid=${uuid}&encodingcheck=Ğ"><\/script> | ||
`); | ||
</script> |
25 changes: 25 additions & 0 deletions
25
...sts/html/syntax/speculative-parsing/generated/document-write/image-src.tentative.sub.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/speculative-parsing/tools/generate.py | ||
--> | ||
<meta charset=utf-8> | ||
<title>Speculative parsing, document.write(): image-src</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script src=/common/utils.js></script> | ||
<script src=/html/syntax/speculative-parsing/resources/speculative-parsing-util.js></script> | ||
<script> | ||
setup({single_test: true}); | ||
const uuid = token(); | ||
expect_fetched_onload(uuid, true) | ||
.then(compare_with_nonspeculative(uuid, 'image-src', true)) | ||
.then(done); | ||
document.write(` | ||
<script src="/common/slow.py?delay=1500"><\/script> | ||
<script> | ||
document.write('<plaintext>'); | ||
<\/script> | ||
<\!-- speculative case in document.write --> | ||
<image src="/html/syntax/speculative-parsing/resources/stash.py?action=put&uuid=${uuid}&encodingcheck=Ğ"> | ||
`); | ||
</script> |
25 changes: 25 additions & 0 deletions
25
.../html/syntax/speculative-parsing/generated/document-write/img-data-src.tentative.sub.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/speculative-parsing/tools/generate.py | ||
--> | ||
<meta charset=utf-8> | ||
<title>Speculative parsing, document.write(): img-data-src</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script src=/common/utils.js></script> | ||
<script src=/html/syntax/speculative-parsing/resources/speculative-parsing-util.js></script> | ||
<script> | ||
setup({single_test: true}); | ||
const uuid = token(); | ||
expect_fetched_onload(uuid, false) | ||
.then(compare_with_nonspeculative(uuid, 'img-data-src', true)) | ||
.then(done); | ||
document.write(` | ||
<script src="/common/slow.py?delay=1500"><\/script> | ||
<script> | ||
document.write('<plaintext>'); | ||
<\/script> | ||
<\!-- speculative case in document.write --> | ||
<img data-src="/html/syntax/speculative-parsing/resources/stash.py?action=put&uuid=${uuid}&encodingcheck=Ğ"> | ||
`); | ||
</script> |
25 changes: 25 additions & 0 deletions
25
...yntax/speculative-parsing/generated/document-write/img-src-crossorigin.tentative.sub.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/speculative-parsing/tools/generate.py | ||
--> | ||
<meta charset=utf-8> | ||
<title>Speculative parsing, document.write(): img-src-crossorigin</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script src=/common/utils.js></script> | ||
<script src=/html/syntax/speculative-parsing/resources/speculative-parsing-util.js></script> | ||
<script> | ||
setup({single_test: true}); | ||
const uuid = token(); | ||
expect_fetched_onload(uuid, true) | ||
.then(compare_with_nonspeculative(uuid, 'img-src-crossorigin', true)) | ||
.then(done); | ||
document.write(` | ||
<script src="/common/slow.py?delay=1500"><\/script> | ||
<script> | ||
document.write('<plaintext>'); | ||
<\/script> | ||
<\!-- speculative case in document.write --> | ||
<img src="/html/syntax/speculative-parsing/resources/stash.py?action=put&uuid=${uuid}&encodingcheck=Ğ" crossorigin> | ||
`); | ||
</script> |
25 changes: 25 additions & 0 deletions
25
...ntax/speculative-parsing/generated/document-write/img-src-loading-lazy.tentative.sub.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/speculative-parsing/tools/generate.py | ||
--> | ||
<meta charset=utf-8> | ||
<title>Speculative parsing, document.write(): img-src-loading-lazy</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script src=/common/utils.js></script> | ||
<script src=/html/syntax/speculative-parsing/resources/speculative-parsing-util.js></script> | ||
<script> | ||
setup({single_test: true}); | ||
const uuid = token(); | ||
expect_fetched_onload(uuid, false) | ||
.then(compare_with_nonspeculative(uuid, 'img-src-loading-lazy', false)) | ||
.then(done); | ||
document.write(` | ||
<script src="/common/slow.py?delay=1500"><\/script> | ||
<script> | ||
document.write('<plaintext>'); | ||
<\/script> | ||
<\!-- speculative case in document.write --> | ||
<img src="/html/syntax/speculative-parsing/resources/stash.py?action=put&uuid=${uuid}&encodingcheck=Ğ" loading=lazy> | ||
`); | ||
</script> |
25 changes: 25 additions & 0 deletions
25
...ve-parsing/generated/document-write/img-src-referrerpolicy-no-referrer.tentative.sub.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/speculative-parsing/tools/generate.py | ||
--> | ||
<meta charset=utf-8> | ||
<title>Speculative parsing, document.write(): img-src-referrerpolicy-no-referrer</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script src=/common/utils.js></script> | ||
<script src=/html/syntax/speculative-parsing/resources/speculative-parsing-util.js></script> | ||
<script> | ||
setup({single_test: true}); | ||
const uuid = token(); | ||
expect_fetched_onload(uuid, true) | ||
.then(compare_with_nonspeculative(uuid, 'img-src-referrerpolicy-no-referrer', true)) | ||
.then(done); | ||
document.write(` | ||
<script src="/common/slow.py?delay=1500"><\/script> | ||
<script> | ||
document.write('<plaintext>'); | ||
<\/script> | ||
<\!-- speculative case in document.write --> | ||
<img src="/html/syntax/speculative-parsing/resources/stash.py?action=put&uuid=${uuid}&encodingcheck=Ğ" referrerpolicy=no-referrer> | ||
`); | ||
</script> |
25 changes: 25 additions & 0 deletions
25
...tests/html/syntax/speculative-parsing/generated/document-write/img-src.tentative.sub.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/speculative-parsing/tools/generate.py | ||
--> | ||
<meta charset=utf-8> | ||
<title>Speculative parsing, document.write(): img-src</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script src=/common/utils.js></script> | ||
<script src=/html/syntax/speculative-parsing/resources/speculative-parsing-util.js></script> | ||
<script> | ||
setup({single_test: true}); | ||
const uuid = token(); | ||
expect_fetched_onload(uuid, true) | ||
.then(compare_with_nonspeculative(uuid, 'img-src', true)) | ||
.then(done); | ||
document.write(` | ||
<script src="/common/slow.py?delay=1500"><\/script> | ||
<script> | ||
document.write('<plaintext>'); | ||
<\/script> | ||
<\!-- speculative case in document.write --> | ||
<img src="/html/syntax/speculative-parsing/resources/stash.py?action=put&uuid=${uuid}&encodingcheck=Ğ"> | ||
`); | ||
</script> |
25 changes: 25 additions & 0 deletions
25
...ts/html/syntax/speculative-parsing/generated/document-write/img-srcset.tentative.sub.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/speculative-parsing/tools/generate.py | ||
--> | ||
<meta charset=utf-8> | ||
<title>Speculative parsing, document.write(): img-srcset</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script src=/common/utils.js></script> | ||
<script src=/html/syntax/speculative-parsing/resources/speculative-parsing-util.js></script> | ||
<script> | ||
setup({single_test: true}); | ||
const uuid = token(); | ||
expect_fetched_onload(uuid, true) | ||
.then(compare_with_nonspeculative(uuid, 'img-srcset', true)) | ||
.then(done); | ||
document.write(` | ||
<script src="/common/slow.py?delay=1500"><\/script> | ||
<script> | ||
document.write('<plaintext>'); | ||
<\/script> | ||
<\!-- speculative case in document.write --> | ||
<img srcset="/html/syntax/speculative-parsing/resources/stash.py?action=put&uuid=${uuid}&encodingcheck=Ğ"> | ||
`); | ||
</script> |
25 changes: 25 additions & 0 deletions
25
...s/html/syntax/speculative-parsing/generated/document-write/link-no-rel.tentative.sub.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/speculative-parsing/tools/generate.py | ||
--> | ||
<meta charset=utf-8> | ||
<title>Speculative parsing, document.write(): link-no-rel</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script src=/common/utils.js></script> | ||
<script src=/html/syntax/speculative-parsing/resources/speculative-parsing-util.js></script> | ||
<script> | ||
setup({single_test: true}); | ||
const uuid = token(); | ||
expect_fetched_onload(uuid, false) | ||
.then(compare_with_nonspeculative(uuid, 'link-no-rel', true)) | ||
.then(done); | ||
document.write(` | ||
<script src="/common/slow.py?delay=1500"><\/script> | ||
<script> | ||
document.write('<plaintext>'); | ||
<\/script> | ||
<\!-- speculative case in document.write --> | ||
<link href="/html/syntax/speculative-parsing/resources/stash.py?action=put&uuid=${uuid}&encodingcheck=Ğ"> | ||
`); | ||
</script> |
25 changes: 25 additions & 0 deletions
25
...ulative-parsing/generated/document-write/link-rel-alternate-stylesheet.tentative.sub.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/speculative-parsing/tools/generate.py | ||
--> | ||
<meta charset=utf-8> | ||
<title>Speculative parsing, document.write(): link-rel-alternate-stylesheet</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script src=/common/utils.js></script> | ||
<script src=/html/syntax/speculative-parsing/resources/speculative-parsing-util.js></script> | ||
<script> | ||
setup({single_test: true}); | ||
const uuid = token(); | ||
expect_fetched_onload(uuid, false) | ||
.then(compare_with_nonspeculative(uuid, 'link-rel-alternate-stylesheet', true)) | ||
.then(done); | ||
document.write(` | ||
<script src="/common/slow.py?delay=1500"><\/script> | ||
<script> | ||
document.write('<plaintext>'); | ||
<\/script> | ||
<\!-- speculative case in document.write --> | ||
<link rel="alternate stylesheet" href="/html/syntax/speculative-parsing/resources/stash.py?action=put&uuid=${uuid}&encodingcheck=Ğ"> | ||
`); | ||
</script> |
25 changes: 25 additions & 0 deletions
25
...-parsing/generated/document-write/link-rel-preload-as-font-crossorigin.tentative.sub.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/speculative-parsing/tools/generate.py | ||
--> | ||
<meta charset=utf-8> | ||
<title>Speculative parsing, document.write(): link-rel-preload-as-font-crossorigin</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script src=/common/utils.js></script> | ||
<script src=/html/syntax/speculative-parsing/resources/speculative-parsing-util.js></script> | ||
<script> | ||
setup({single_test: true}); | ||
const uuid = token(); | ||
expect_fetched_onload(uuid, true) | ||
.then(compare_with_nonspeculative(uuid, 'link-rel-preload-as-font-crossorigin', true)) | ||
.then(done); | ||
document.write(` | ||
<script src="/common/slow.py?delay=1500"><\/script> | ||
<script> | ||
document.write('<plaintext>'); | ||
<\/script> | ||
<\!-- speculative case in document.write --> | ||
<link rel=preload as=font href="/html/syntax/speculative-parsing/resources/stash.py?action=put&uuid=${uuid}&encodingcheck=Ğ" crossorigin> | ||
`); | ||
</script> |
25 changes: 25 additions & 0 deletions
25
...speculative-parsing/generated/document-write/link-rel-preload-as-image.tentative.sub.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/speculative-parsing/tools/generate.py | ||
--> | ||
<meta charset=utf-8> | ||
<title>Speculative parsing, document.write(): link-rel-preload-as-image</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script src=/common/utils.js></script> | ||
<script src=/html/syntax/speculative-parsing/resources/speculative-parsing-util.js></script> | ||
<script> | ||
setup({single_test: true}); | ||
const uuid = token(); | ||
expect_fetched_onload(uuid, true) | ||
.then(compare_with_nonspeculative(uuid, 'link-rel-preload-as-image', true)) | ||
.then(done); | ||
document.write(` | ||
<script src="/common/slow.py?delay=1500"><\/script> | ||
<script> | ||
document.write('<plaintext>'); | ||
<\/script> | ||
<\!-- speculative case in document.write --> | ||
<link rel=preload as=image href="/html/syntax/speculative-parsing/resources/stash.py?action=put&uuid=${uuid}&encodingcheck=Ğ"> | ||
`); | ||
</script> |
25 changes: 25 additions & 0 deletions
25
...peculative-parsing/generated/document-write/link-rel-preload-as-script.tentative.sub.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/speculative-parsing/tools/generate.py | ||
--> | ||
<meta charset=utf-8> | ||
<title>Speculative parsing, document.write(): link-rel-preload-as-script</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script src=/common/utils.js></script> | ||
<script src=/html/syntax/speculative-parsing/resources/speculative-parsing-util.js></script> | ||
<script> | ||
setup({single_test: true}); | ||
const uuid = token(); | ||
expect_fetched_onload(uuid, true) | ||
.then(compare_with_nonspeculative(uuid, 'link-rel-preload-as-script', true)) | ||
.then(done); | ||
document.write(` | ||
<script src="/common/slow.py?delay=1500"><\/script> | ||
<script> | ||
document.write('<plaintext>'); | ||
<\/script> | ||
<\!-- speculative case in document.write --> | ||
<link rel=preload as=script href="/html/syntax/speculative-parsing/resources/stash.py?action=put&uuid=${uuid}&encodingcheck=Ğ"> | ||
`); | ||
</script> |
25 changes: 25 additions & 0 deletions
25
...speculative-parsing/generated/document-write/link-rel-preload-as-style.tentative.sub.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/speculative-parsing/tools/generate.py | ||
--> | ||
<meta charset=utf-8> | ||
<title>Speculative parsing, document.write(): link-rel-preload-as-style</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script src=/common/utils.js></script> | ||
<script src=/html/syntax/speculative-parsing/resources/speculative-parsing-util.js></script> | ||
<script> | ||
setup({single_test: true}); | ||
const uuid = token(); | ||
expect_fetched_onload(uuid, true) | ||
.then(compare_with_nonspeculative(uuid, 'link-rel-preload-as-style', true)) | ||
.then(done); | ||
document.write(` | ||
<script src="/common/slow.py?delay=1500"><\/script> | ||
<script> | ||
document.write('<plaintext>'); | ||
<\/script> | ||
<\!-- speculative case in document.write --> | ||
<link rel=preload as=style href="/html/syntax/speculative-parsing/resources/stash.py?action=put&uuid=${uuid}&encodingcheck=Ğ"> | ||
`); | ||
</script> |
25 changes: 25 additions & 0 deletions
25
...ative-parsing/generated/document-write/link-rel-stylesheet-crossorigin.tentative.sub.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/speculative-parsing/tools/generate.py | ||
--> | ||
<meta charset=utf-8> | ||
<title>Speculative parsing, document.write(): link-rel-stylesheet-crossorigin</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script src=/common/utils.js></script> | ||
<script src=/html/syntax/speculative-parsing/resources/speculative-parsing-util.js></script> | ||
<script> | ||
setup({single_test: true}); | ||
const uuid = token(); | ||
expect_fetched_onload(uuid, true) | ||
.then(compare_with_nonspeculative(uuid, 'link-rel-stylesheet-crossorigin', true)) | ||
.then(done); | ||
document.write(` | ||
<script src="/common/slow.py?delay=1500"><\/script> | ||
<script> | ||
document.write('<plaintext>'); | ||
<\/script> | ||
<\!-- speculative case in document.write --> | ||
<link rel=stylesheet href="/html/syntax/speculative-parsing/resources/stash.py?action=put&uuid=${uuid}&encodingcheck=Ğ" crossorigin> | ||
`); | ||
</script> |
Oops, something went wrong.