Update web-platform-tests to revision 4b25d322ac6ed466f992669e5408b15d37d56436

This commit is contained in:
Ms2ger 2015-10-21 16:41:59 +02:00
parent 6a4ad433a2
commit 92e90e6633
32 changed files with 277 additions and 150 deletions

View file

@ -9,7 +9,7 @@
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<body id="tags">
<img src="../../../../images/green.png" name="picture">
<script>
test(function(){ assert_equals(document.all.length,12)}, "Test for HTMLAllCollection size");
@ -18,8 +18,6 @@ test(function(){ assert_equals(document.all.item(0).tagName,"HTML")}, "Test look
test(function(){ assert_equals(document.all[0].tagName,"HTML")}, "Test lookup by index using []");
test(function(){ assert_equals(document.all.tags("script").length,3)}, "Test for multiple occurence 3 <script> found");
test(function(){ assert_equals(document.all.item("picture").nodeName,"IMG")}, "Test lookup IMG by name");
test(function(){ assert_equals(document.all.namedItem("picture").nodeName,"IMG")}, "Test lookup IMG by namedItem ");
@ -27,7 +25,11 @@ test(function(){ assert_equals(document.all.namedItem("picture").nodeName,"IMG")
test(function(){ assert_equals(document.all("picture").nodeName,"IMG")}, "Test lookup IMG in collection using ()");
test(function(){ assert_equals(document.all["picture"].nodeName,"IMG")}, "Test lookup IMG in collection using []");
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 .");
</script>
<div id="log"></div>
</body>
</html>
</html>

View file

@ -18,8 +18,12 @@
<input type="checkbox" name="cb">
</td>
</tr>
<button id="btn"></button>
<button name="btn"></button>
<tr>
<td>
<button id="btn"></button>
<button name="btn"></button>
</td>
</tr>
</table>
</form>
@ -50,8 +54,8 @@ test(function () {
//getter - name
test(function () {
assert_equals(coll1("r1"), rdo, "HTMLFormControlsCollection(name) should return the 'input' element in radio status.");
}, "HTMLFormControlsCollection(name) must return the named item");
assert_throws(TypeError(), function() { coll1("r1") });
}, "HTMLFormControlsCollection is not callable");
test(function () {
assert_equals(coll1["r1"], rdo, "HTMLFormControlsCollection[name] should return the 'input' element in radio status.");