Update web-platform-tests and CSS tests.

- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180.
- Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
This commit is contained in:
Ms2ger 2017-02-06 11:06:12 +01:00
parent fb4f421c8b
commit 296fa2512b
21852 changed files with 2080936 additions and 892894 deletions

View file

@ -26,7 +26,7 @@ test(function() {
assert_false(element1.isSameNode(element2), "same properties");
assert_false(element1.isSameNode(null), "with null other node");
}, "elements should be compared on reference");
}, "elements should be compared on reference (namespaced element)");
test(function() {
@ -40,7 +40,7 @@ test(function() {
assert_false(element1.isSameNode(element2), "same properties");
assert_false(element1.isSameNode(null), "with null other node");
}, "elements should be compared on reference");
}, "elements should be compared on reference (namespaced attribute)");
test(function() {

View file

@ -8,6 +8,8 @@
<p id="3"></p>
<p id="4"></p>
<p id="5"></p>
<div id="live"><b id="b1">1</b><b id="b2">2</b><b id="b3">3</b></div>
<script>
var paragraphs;
setup(function() {
@ -34,4 +36,26 @@
assert_equals(node.getAttribute('id'), ids[idx++]);
}
}, 'NodeList is iterable via for-of loop.');
test(function() {
assert_array_equals(Object.keys(paragraphs), ['0', '1', '2', '3', '4']);
}, 'NodeList responds to Object.keys correctly');
test(function() {
var container = document.getElementById('live');
var nodeList = container.childNodes;
var ids = [];
for (var el of nodeList) {
ids.push(el.id);
assert_equals(el.localName, 'b');
if (ids.length < 3) {
var newEl = document.createElement('b');
newEl.id = 'after' + el.id;
container.appendChild(newEl);
}
}
assert_array_equals(ids, ['b1', 'b2', 'b3', 'afterb1', 'afterb2']);
}, 'live NodeLists are for-of iterable and update appropriately');
</script>