Skip to content

Commit

Permalink
Sync html/syntax/speculative-parsing/generated from WPT upstream
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=274655

Reviewed by Anne van Kesteren.

This patch is to sync tests from WPT:

Upstream commit: web-platform-tests/wpt@3c073b2

* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/w3c-import.log:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/page-load/resources/w3c-import.log:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/page-load/w3c-import.log:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/resources/w3c-import.log:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/resources/template-shadowrootmode-script-src-nonspeculative.sub.html:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/resources/template-shadowrootmode-link-stylesheet-nonspeculative.sub.html:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/resources/template-shadowrootmode-img-src-nonspeculative.sub.html:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/resources/template-link-stylesheet-nonspeculative.sub.html:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/resources/template-img-src-nonspeculative.sub.html:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/resources/nested-template-shadowrootmode-2-nonspeculative.sub.html:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/resources/nested-template-shadowrootmode-1-nonspeculative.sub.html:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/page-load/template-shadowrootmode-script-src.tentative.html:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/page-load/template-shadowrootmode-link-stylesheet.tentative.html:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/page-load/template-shadowrootmode-img-src.tentative.html:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/page-load/template-link-stylesheet.tentative.html:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/page-load/template-img-src.tentative.html:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/page-load/resources/template-shadowrootmode-script-src-framed.sub.html:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/page-load/resources/template-shadowrootmode-link-stylesheet-framed.sub.html:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/page-load/resources/template-shadowrootmode-img-src-framed.sub.html:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/page-load/resources/template-link-stylesheet-framed.sub.html:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/page-load/resources/template-img-src-framed.sub.html:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/page-load/resources/nested-template-shadowrootmode-2-framed.sub.html:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/page-load/resources/nested-template-shadowrootmode-1-framed.sub.html:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/page-load/nested-template-shadowrootmode-2.tentative.html:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/page-load/nested-template-shadowrootmode-1.tentative.html:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/template-shadowrootmode-script-src.tentative.sub.html:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/template-shadowrootmode-link-stylesheet.tentative.sub.html:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/template-shadowrootmode-img-src.tentative.sub.html:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/template-link-stylesheet.tentative.sub.html:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/template-img-src.tentative.sub.html:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/nested-template-shadowrootmode-2.tentative.sub.html:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/nested-template-shadowrootmode-1.tentative.sub.html:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/page-load/nested-template-shadowrootmode-1.tentative-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/template-img-src.tentative.sub-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/template-img-src.tentative-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/nested-template-shadowrootmode-2.tentative.sub-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/nested-template-shadowrootmode-2.tentative-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/nested-template-shadowrootmode-1.tentative.sub-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/page-load/template-shadowrootmode-img-src.tentative-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/page-load/template-link-stylesheet.tentative-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/page-load/template-img-src.tentative-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/page-load/nested-template-shadowrootmode-2.tentative-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/page-load/template-img-src.tentative-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/page-load/template-link-stylesheet.tentative-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/page-load/template-shadowrootmode-img-src.tentative-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/page-load/template-shadowrootmode-script-src.tentative-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/page-load/template-shadowrootmode-link-stylesheet.tentative-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/template-shadowrootmode-script-src.tentative.sub-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/template-shadowrootmode-link-stylesheet.tentative.sub-expected.txt:

Canonical link: https://commits.webkit.org/279385@main
  • Loading branch information
Ahmad Saleem committed May 28, 2024
1 parent 2e51cc7 commit c076205
Show file tree
Hide file tree
Showing 48 changed files with 599 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

<!-- speculative case in document.write -->
<template><div><template shadowrootmode="closed"><script src="/html/syntax/speculative-parsing/resources/stash.py?action=put&amp;uuid=b79c85d3-422b-4bb4-80f9-7772f364508a&amp;encodingcheck=&Gbreve;"></script></template></div></template>



PASS Speculative parsing, document.write(): nested-template-shadowrootmode-1

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(): nested-template-shadowrootmode-1</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, 'nested-template-shadowrootmode-1', true))
.then(done);
document.write(`
<script src="/common/slow.py?delay=1500"><\/script>
<script>
document.write('<plaintext>');
<\/script>
<\!-- speculative case in document.write -->
<template><div><template shadowrootmode="closed"><script src="/html/syntax/speculative-parsing/resources/stash.py?action=put&amp;uuid=${uuid}&amp;encodingcheck=&Gbreve;"><\/script></template></div></template>
`);
</script>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@


PASS Speculative parsing, page load: nested-template-shadowrootmode-2

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

<!-- speculative case in document.write -->
<div><template shadowrootmode="closed"><template><script src="/html/syntax/speculative-parsing/resources/stash.py?action=put&amp;uuid=9c699e63-3ce9-481c-88fd-451e81f0c2ac&amp;encodingcheck=&Gbreve;"></script></template></template></div>



PASS Speculative parsing, document.write(): nested-template-shadowrootmode-2

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(): nested-template-shadowrootmode-2</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, 'nested-template-shadowrootmode-2', true))
.then(done);
document.write(`
<script src="/common/slow.py?delay=1500"><\/script>
<script>
document.write('<plaintext>');
<\/script>
<\!-- speculative case in document.write -->
<div><template shadowrootmode="closed"><template><script src="/html/syntax/speculative-parsing/resources/stash.py?action=put&amp;uuid=${uuid}&amp;encodingcheck=&Gbreve;"><\/script></template></template></div>
`);
</script>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@


PASS Speculative parsing, page load: template-img-src

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

<!-- speculative case in document.write -->
<template><img src="/html/syntax/speculative-parsing/resources/stash.py?action=put&amp;uuid=7bae30f5-e4cd-42a6-95fb-7dba0b3cdfe0&amp;encodingcheck=&Gbreve;"></template>



PASS Speculative parsing, document.write(): template-img-src

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(): template-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, false)
.then(compare_with_nonspeculative(uuid, 'template-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 -->
<template><img src="/html/syntax/speculative-parsing/resources/stash.py?action=put&amp;uuid=${uuid}&amp;encodingcheck=&Gbreve;"></template>
`);
</script>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

<!-- speculative case in document.write -->
<template><link rel=stylesheet href="/html/syntax/speculative-parsing/resources/stash.py?action=put&amp;uuid=ef773b25-dfe5-4ed7-8b4c-841403b712c8&amp;encodingcheck=&Gbreve;"></template>



PASS Speculative parsing, document.write(): template-link-stylesheet

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(): template-link-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, 'template-link-stylesheet', true))
.then(done);
document.write(`
<script src="/common/slow.py?delay=1500"><\/script>
<script>
document.write('<plaintext>');
<\/script>
<\!-- speculative case in document.write -->
<template><link rel=stylesheet href="/html/syntax/speculative-parsing/resources/stash.py?action=put&amp;uuid=${uuid}&amp;encodingcheck=&Gbreve;"></template>
`);
</script>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CONSOLE MESSAGE: Unhandled Promise Rejection: Error: assert_not_equals: speculative case did not fetch got disallowed value ""

<!-- speculative case in document.write -->
<div><template shadowrootmode="closed"><img src="/html/syntax/speculative-parsing/resources/stash.py?action=put&amp;uuid=d8ca7a97-e8c3-4d61-8912-aff8350abd50&amp;encodingcheck=&Gbreve;"></template></div>


FAIL Speculative parsing, document.write(): template-shadowrootmode-img-src Unhandled rejection: assert_not_equals: speculative case did not fetch got disallowed value ""

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(): template-shadowrootmode-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, 'template-shadowrootmode-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 -->
<div><template shadowrootmode="closed"><img src="/html/syntax/speculative-parsing/resources/stash.py?action=put&amp;uuid=${uuid}&amp;encodingcheck=&Gbreve;"></template></div>
`);
</script>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CONSOLE MESSAGE: Unhandled Promise Rejection: Error: assert_not_equals: speculative case did not fetch got disallowed value ""

<!-- speculative case in document.write -->
<div><template shadowrootmode="closed"><link rel=stylesheet href="/html/syntax/speculative-parsing/resources/stash.py?action=put&amp;uuid=4bdd6438-73b9-4b3d-a8c7-58b5e5aace62&amp;encodingcheck=&Gbreve;"></template></div>


FAIL Speculative parsing, document.write(): template-shadowrootmode-link-stylesheet Unhandled rejection: assert_not_equals: speculative case did not fetch got disallowed value ""

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(): template-shadowrootmode-link-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, true)
.then(compare_with_nonspeculative(uuid, 'template-shadowrootmode-link-stylesheet', true))
.then(done);
document.write(`
<script src="/common/slow.py?delay=1500"><\/script>
<script>
document.write('<plaintext>');
<\/script>
<\!-- speculative case in document.write -->
<div><template shadowrootmode="closed"><link rel=stylesheet href="/html/syntax/speculative-parsing/resources/stash.py?action=put&amp;uuid=${uuid}&amp;encodingcheck=&Gbreve;"></template></div>
`);
</script>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CONSOLE MESSAGE: Unhandled Promise Rejection: Error: assert_not_equals: speculative case did not fetch got disallowed value ""

<!-- speculative case in document.write -->
<div><template shadowrootmode="closed"><script src="/html/syntax/speculative-parsing/resources/stash.py?action=put&amp;uuid=6f013501-95b1-4d24-abac-9e33c7c8ee6b&amp;encodingcheck=&Gbreve;"></script></template></div>


FAIL Speculative parsing, document.write(): template-shadowrootmode-script-src Unhandled rejection: assert_not_equals: speculative case did not fetch got disallowed value ""

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(): template-shadowrootmode-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, 'template-shadowrootmode-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 -->
<div><template shadowrootmode="closed"><script src="/html/syntax/speculative-parsing/resources/stash.py?action=put&amp;uuid=${uuid}&amp;encodingcheck=&Gbreve;"><\/script></template></div>
`);
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ List of files:
/LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/meta-csp-img-src-none.tentative.sub.html
/LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/meta-referrer-no-referrer-img-src.tentative.sub.html
/LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/meta-viewport-link-stylesheet-media.tentative.sub.html
/LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/nested-template-shadowrootmode-1.tentative.sub.html
/LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/nested-template-shadowrootmode-2.tentative.sub.html
/LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/picture-source-br-img.tentative.sub.html
/LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/picture-source-no-img.tentative.sub.html
/LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/picture-source-nomatch-media.tentative.sub.html
Expand All @@ -64,6 +66,11 @@ List of files:
/LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/svg-script-href.tentative.sub.html
/LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/svg-script-src.tentative.sub.html
/LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/svg-script-xlinkhref.tentative.sub.html
/LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/template-img-src.tentative.sub.html
/LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/template-link-stylesheet.tentative.sub.html
/LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/template-script-src.tentative.sub.html
/LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/template-shadowrootmode-img-src.tentative.sub.html
/LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/template-shadowrootmode-link-stylesheet.tentative.sub.html
/LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/template-shadowrootmode-script-src.tentative.sub.html
/LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/video-poster.tentative.sub.html
/LayoutTests/imported/w3c/web-platform-tests/html/syntax/speculative-parsing/generated/document-write/xmp-script-src.tentative.sub.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@


PASS Speculative parsing, page load: nested-template-shadowrootmode-1

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!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, page load: nested-template-shadowrootmode-1</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>
<body>
<script>
setup({single_test: true});
const uuid = token();
const iframe = document.createElement('iframe');
iframe.src = `resources/nested-template-shadowrootmode-1-framed.sub.html?uuid=${uuid}`;
document.body.appendChild(iframe);
expect_fetched_onload(uuid, false)
.then(compare_with_nonspeculative(uuid, 'nested-template-shadowrootmode-1', true))
.then(done);
</script>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@


PASS Speculative parsing, page load: nested-template-shadowrootmode-2

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!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, page load: nested-template-shadowrootmode-2</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>
<body>
<script>
setup({single_test: true});
const uuid = token();
const iframe = document.createElement('iframe');
iframe.src = `resources/nested-template-shadowrootmode-2-framed.sub.html?uuid=${uuid}`;
document.body.appendChild(iframe);
expect_fetched_onload(uuid, false)
.then(compare_with_nonspeculative(uuid, 'nested-template-shadowrootmode-2', true))
.then(done);
</script>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!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, page load (helper file): nested-template-shadowrootmode-1</title>
<script src="/common/slow.py?delay=1500"></script>
<script>
document.write('<plaintext>');
</script>
<!-- speculative case -->
<template><div><template shadowrootmode="closed"><script src="/html/syntax/speculative-parsing/resources/stash.py?action=put&amp;uuid={{GET[uuid]}}&amp;encodingcheck=&Gbreve;"></script></template></div></template>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!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, page load (helper file): nested-template-shadowrootmode-2</title>
<script src="/common/slow.py?delay=1500"></script>
<script>
document.write('<plaintext>');
</script>
<!-- speculative case -->
<div><template shadowrootmode="closed"><template><script src="/html/syntax/speculative-parsing/resources/stash.py?action=put&amp;uuid={{GET[uuid]}}&amp;encodingcheck=&Gbreve;"></script></template></template></div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!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, page load (helper file): template-img-src</title>
<script src="/common/slow.py?delay=1500"></script>
<script>
document.write('<plaintext>');
</script>
<!-- speculative case -->
<template><img src="/html/syntax/speculative-parsing/resources/stash.py?action=put&amp;uuid={{GET[uuid]}}&amp;encodingcheck=&Gbreve;"></template>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!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, page load (helper file): template-link-stylesheet</title>
<script src="/common/slow.py?delay=1500"></script>
<script>
document.write('<plaintext>');
</script>
<!-- speculative case -->
<template><link rel=stylesheet href="/html/syntax/speculative-parsing/resources/stash.py?action=put&amp;uuid={{GET[uuid]}}&amp;encodingcheck=&Gbreve;"></template>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!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, page load (helper file): template-shadowrootmode-img-src</title>
<script src="/common/slow.py?delay=1500"></script>
<script>
document.write('<plaintext>');
</script>
<!-- speculative case -->
<div><template shadowrootmode="closed"><img src="/html/syntax/speculative-parsing/resources/stash.py?action=put&amp;uuid={{GET[uuid]}}&amp;encodingcheck=&Gbreve;"></template></div>
Loading

0 comments on commit c076205

Please sign in to comment.