mirror of
https://github.com/servo/servo.git
synced 2025-08-15 10:25:32 +01:00
Update web-platform-tests to revision 3b3585e368841b77caea8576fa56cef91c3fbdf0
This commit is contained in:
parent
d00639c55f
commit
3b4f0ec0bb
541 changed files with 14609 additions and 3288 deletions
|
@ -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() {
|
||||
|
|
|
@ -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 object’s 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 object’s
|
||||
// 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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue