Update web-platform-tests to revision 3b3585e368841b77caea8576fa56cef91c3fbdf0

This commit is contained in:
Ms2ger 2016-09-26 10:52:50 +02:00
parent d00639c55f
commit 3b4f0ec0bb
541 changed files with 14609 additions and 3288 deletions

View file

@ -102,26 +102,6 @@ document.body.appendChild(s);
finish('nested');
</script>
<!-- Test beforescriptexecute and afterscriptexecute -->
<script id="script-exec-before-after">
function verifyScriptExec(e) {
verify('script-exec');
}
document.addEventListener('beforescriptexecute', verifyScriptExec, false);
document.addEventListener('afterscriptexecute', verifyScriptExec, false);
var s = document.createElement("script");
s.id = "script-exec-test";
s.textContent = "function nop() { return false }";
document.body.appendChild(s);
document.removeEventListener('beforescriptexecute', verifyScriptExec);
document.removeEventListener('afterscriptexecute', verifyScriptExec);
finish('script-exec');
</script>
<!-- Test script load error event listener -->
<script>
function testLoadFail() {

View file

@ -53,7 +53,14 @@ test(function() {
for (var p in document.forms) {
result.push(p);
}
assert_array_equals(result, ["0", "1", "2", "item", "namedItem", "length"])
// http://heycam.github.io/webidl/#property-enumeration
// If the object supports indexed properties, then the objects supported
// property indices are enumerated first, in numerical order.
assert_array_equals(result.splice(0, 2), ["0", "1", "2"]);
// [...]
// Finally, any enumerable own properties or properties from the objects
// prototype chain are then enumerated, in no defined order.
assert_array_equals(result.sort(), ["0", "1", "2", "item", "namedItem", "length"].sort())
}, "document.forms iteration")
test(function() {