mirror of
https://github.com/servo/servo.git
synced 2025-08-14 09:55:35 +01:00
Update web-platform-tests to 5582e4d2bfcfd1fa9f105406b143170ee2af7db1
This commit is contained in:
parent
9f892edd87
commit
78369e95cf
814 changed files with 57501 additions and 857 deletions
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<html id="root">
|
||||
<head>
|
||||
<title>HTMLAllCollection Tests</title>
|
||||
<link rel="author" title="Dan Druta" href="mailto:dan.druta@att.com"/>
|
||||
|
@ -11,8 +11,10 @@
|
|||
</head>
|
||||
<body id="tags">
|
||||
<img src="../../../../images/green.png" name="picture">
|
||||
<a name="foo"></a>
|
||||
<a name="foo"></a>
|
||||
<script>
|
||||
test(function(){ assert_equals(document.all.length,12)}, "Test for HTMLAllCollection size");
|
||||
test(function(){ assert_equals(document.all.length,14)}, "Test for HTMLAllCollection size");
|
||||
|
||||
test(function(){ assert_equals(document.all.item(0).tagName,"HTML")}, "Test lookup by index using ()");
|
||||
|
||||
|
@ -29,6 +31,16 @@ test(function(){ assert_equals(document.all["picture"].nodeName,"IMG")}, "Test l
|
|||
test(function(){ assert_equals(document.all.picture.nodeName,"IMG")}, "Test lookup IMG in collection using .");
|
||||
|
||||
test(function(){ assert_equals(document.all.tags.id,"tags")}, "Test lookup tags in collection using .");
|
||||
|
||||
test(function() {
|
||||
assert_equals(document.all["root"], document.documentElement);
|
||||
}, "Should find root element too");
|
||||
|
||||
test(function() {
|
||||
assert_equals(document.all["foo"].length, 2);
|
||||
}, "Should find both anchors and produce a list");
|
||||
|
||||
test
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue