mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
Introduce a Servo-only tree under web-platform-tests.
This commit is contained in:
parent
8edd4e5ec5
commit
a471704107
6 changed files with 65 additions and 25 deletions
23
tests/wpt/mozilla/meta/MANIFEST.json
Normal file
23
tests/wpt/mozilla/meta/MANIFEST.json
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"items": {
|
||||
"manual": [],
|
||||
"reftest": [],
|
||||
"stub": [],
|
||||
"testharness": [
|
||||
{
|
||||
"path": "mozilla/prototypes.html",
|
||||
"url": "/_mozilla/mozilla/prototypes.html"
|
||||
}
|
||||
],
|
||||
"wdspec": []
|
||||
},
|
||||
"local_changes": {
|
||||
"deleted": [],
|
||||
"items": {},
|
||||
"reftest_nodes": {}
|
||||
},
|
||||
"reftest_nodes": {},
|
||||
"rev": null,
|
||||
"url_base": "/_mozilla/",
|
||||
"version": 2
|
||||
}
|
26
tests/wpt/mozilla/tests/mozilla/prototypes.html
Normal file
26
tests/wpt/mozilla/tests/mozilla/prototypes.html
Normal file
|
@ -0,0 +1,26 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<foo-á>foo</foo-á>
|
||||
<script>
|
||||
test(function() {
|
||||
assert_true(window.document instanceof Node, "Should be Node");
|
||||
gc(); // ensure that our document rooting works; subsequent accesses should be valid.
|
||||
assert_true(window.document instanceof Node, "Should be Node");
|
||||
assert_equals(window.document.nodeType, Node.DOCUMENT_NODE);
|
||||
assert_true(window.document.documentElement instanceof Node, "Should be Node");
|
||||
assert_true(window.document.documentElement instanceof Element, "Should be Element");
|
||||
assert_true(window.document.documentElement instanceof HTMLElement, "Should be HTMLElement");
|
||||
assert_true(window.document.documentElement instanceof HTMLHtmlElement, "Should be HTMLHtmlElement");
|
||||
assert_true(window.document instanceof Document, "Should be Document");
|
||||
assert_equals(window.document.documentElement.tagName, "HTML");
|
||||
assert_true(window.document.getElementsByTagName('foo-á')[0] instanceof HTMLUnknownElement, "Should be HTMLUnknownElement");
|
||||
assert_equals(window.document.getElementsByTagName('foo-á')[0].tagName, "FOO-á");
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue