mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
Update web-platform-tests to revision b'ee6da9d71d0268d7fdb04e8e5b26858f46ee0cc4'
This commit is contained in:
parent
4401622eb1
commit
b77ad115f6
16832 changed files with 270819 additions and 87621 deletions
|
@ -1,4 +1,8 @@
|
|||
Note: the html5lib_* files in this directory are autogenerated.
|
||||
Note: the html5lib_* files in this directory are autogenerated, as are
|
||||
the tests under speculative-parsing/.
|
||||
|
||||
To update them use the script /html/tools/update_html5lib_tests.py.
|
||||
Further instructions are provided in that file.
|
||||
To update the generated tests, run
|
||||
`wpt update-built --include html5lib speculative-parsing`.
|
||||
|
||||
The revision of html5lib used to generate the tests is stored in
|
||||
html/tools/html5lib_revision
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE html>
|
||||
<title>The adoption agency algorithm should check the end tag's name</title>
|
||||
<link rel="author" href="mailto:n4ag3a2sh1i@gmail.com">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/parsing.html#adoption-agency-algorithm">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
|
||||
|
||||
<script>
|
||||
'use strict';
|
||||
|
||||
// This is a regression test for https://crbug.com/1217523.
|
||||
test(() => {
|
||||
const wrapper = document.createElement('div');
|
||||
const html = '<code some-attribute=""><div><code><code><code><code></code></code></code></code></div></code>';
|
||||
wrapper.innerHTML = html;
|
||||
assert_equals(wrapper.innerHTML, html);
|
||||
}, 'The algorithm should not reparent properly nested tags');
|
||||
|
||||
</script>
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf8">
|
||||
<title>HTML 5 Parser tests html5lib_innerHTML_svg.html</title>
|
||||
<meta name="timeout" content="long">
|
||||
</head>
|
||||
<body>
|
||||
<h1>html5lib Parser Test</h1>
|
||||
<div id="log"></div>
|
||||
<script src="common.js"></script>
|
||||
<script src="test.js"></script>
|
||||
<script src="template.js"></script>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
var num_iframes = 8;
|
||||
var order = ['9de06fc8491759163a4b2a4e17015c94cab31f13','f4ffd3073d887daeb6b5d293547f3596a6bbe2b3','3abfcccd524311a4afcc0057334c8364616fd830','70fbdb7f147b21143966af3a9467f716cc314637','44994fe2eb6af6ad3511781f23bafcdd2d24692c','a148d278cbb59d5eadc1c6a5576c7887dcadb74e','f1746231c89e495dc6b9d114d6d2f52876a1f5f5','1689d7c8f41a57eb15235d337028f3fe44764349',];
|
||||
var tests = {
|
||||
"9de06fc8491759163a4b2a4e17015c94cab31f13":[async_test('html5lib_innerHTML_svg.html 9de06fc8491759163a4b2a4e17015c94cab31f13'), "%3Csvg%3E%3Ctr%3E%3Ctd%3E%3Ctitle%3E%3Ctr%3E", "%23document%0A%7C%20%3Csvg%20svg%3E%0A%7C%20%20%20%3Csvg%20tr%3E%0A%7C%20%20%20%20%20%3Csvg%20td%3E%0A%7C%20%20%20%20%20%20%20%3Csvg%20title%3E", 'td'],"f4ffd3073d887daeb6b5d293547f3596a6bbe2b3":[async_test('html5lib_innerHTML_svg.html f4ffd3073d887daeb6b5d293547f3596a6bbe2b3'), "%3Csvg%3E%3Ctr%3E%3Ctd%3E%3Ctitle%3E%3Ctr%3E", "%23document%0A%7C%20%3Csvg%20svg%3E%0A%7C%20%20%20%3Csvg%20tr%3E%0A%7C%20%20%20%20%20%3Csvg%20td%3E%0A%7C%20%20%20%20%20%20%20%3Csvg%20title%3E", 'tr'],"3abfcccd524311a4afcc0057334c8364616fd830":[async_test('html5lib_innerHTML_svg.html 3abfcccd524311a4afcc0057334c8364616fd830'), "%3Csvg%3E%3Cthead%3E%3Ctitle%3E%3Ctbody%3E", "%23document%0A%7C%20%3Csvg%20svg%3E%0A%7C%20%20%20%3Csvg%20thead%3E%0A%7C%20%20%20%20%20%3Csvg%20title%3E", 'thead'],"70fbdb7f147b21143966af3a9467f716cc314637":[async_test('html5lib_innerHTML_svg.html 70fbdb7f147b21143966af3a9467f716cc314637'), "%3Csvg%3E%3Ctfoot%3E%3Ctitle%3E%3Ctbody%3E", "%23document%0A%7C%20%3Csvg%20svg%3E%0A%7C%20%20%20%3Csvg%20tfoot%3E%0A%7C%20%20%20%20%20%3Csvg%20title%3E", 'tfoot'],"44994fe2eb6af6ad3511781f23bafcdd2d24692c":[async_test('html5lib_innerHTML_svg.html 44994fe2eb6af6ad3511781f23bafcdd2d24692c'), "%3Csvg%3E%3Ctbody%3E%3Ctitle%3E%3Ctfoot%3E", "%23document%0A%7C%20%3Csvg%20svg%3E%0A%7C%20%20%20%3Csvg%20tbody%3E%0A%7C%20%20%20%20%20%3Csvg%20title%3E", 'tbody'],"a148d278cbb59d5eadc1c6a5576c7887dcadb74e":[async_test('html5lib_innerHTML_svg.html a148d278cbb59d5eadc1c6a5576c7887dcadb74e'), "%3Csvg%3E%3Ctbody%3E%3Ctitle%3E%3C/table%3E", "%23document%0A%7C%20%3Csvg%20svg%3E%0A%7C%20%20%20%3Csvg%20tbody%3E%0A%7C%20%20%20%20%20%3Csvg%20title%3E", 'tbody'],"f1746231c89e495dc6b9d114d6d2f52876a1f5f5":[async_test('html5lib_innerHTML_svg.html f1746231c89e495dc6b9d114d6d2f52876a1f5f5'), "%3Csvg%3E%3Cthead%3E%3Ctitle%3E%3C/table%3E", "%23document%0A%7C%20%3Csvg%20svg%3E%0A%7C%20%20%20%3Csvg%20thead%3E%0A%7C%20%20%20%20%20%3Csvg%20title%3E", 'tbody'],"1689d7c8f41a57eb15235d337028f3fe44764349":[async_test('html5lib_innerHTML_svg.html 1689d7c8f41a57eb15235d337028f3fe44764349'), "%3Csvg%3E%3Ctfoot%3E%3Ctitle%3E%3C/table%3E", "%23document%0A%7C%20%3Csvg%20svg%3E%0A%7C%20%20%20%3Csvg%20tfoot%3E%0A%7C%20%20%20%20%20%3Csvg%20title%3E", 'tbody'],
|
||||
}
|
||||
init_tests("innerHTML");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,22 @@
|
|||
<!doctype>
|
||||
<meta charset=utf-8>
|
||||
<title>Doctype without root name should have empty-string name in the DOM even if null in the tokenizer spec.</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
window.onload = function() {
|
||||
test(function () {
|
||||
assert_equals(document.doctype.name, "", "Top-level");
|
||||
let iframes = document.getElementsByTagName("iframe");
|
||||
for (let i = 0; i < iframes.length; ++i) {
|
||||
let iframe = iframes[i];
|
||||
assert_equals(iframe.contentDocument.doctype.name, "", iframe.title);
|
||||
}
|
||||
}, "Doctype without root name should have the empty string as the name.");
|
||||
done();
|
||||
}
|
||||
</script>
|
||||
<iframe src="support/no-doctype-name-space.html" title='space'></iframe>
|
||||
<iframe src="support/no-doctype-name-line.html" title='line'></iframe>
|
||||
<iframe src="support/no-doctype-name-eof.html" title='eof'></iframe>
|
|
@ -0,0 +1 @@
|
|||
<!DOCTYPE
|
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE
|
||||
>
|
|
@ -0,0 +1 @@
|
|||
<!DOCTYPE >
|
Loading…
Add table
Add a link
Reference in a new issue