Update web-platform-tests to revision 2b80e6d28f3c1ca734384ebded282bf07df80657

This commit is contained in:
WPT Sync Bot 2019-10-18 10:32:38 +00:00
parent 32eb858a6a
commit aff72973cf
379 changed files with 13969 additions and 2161 deletions

View file

@ -8,7 +8,7 @@
async_test(function(t) {
var obj = document.createElement("iframe");
obj.onload = t.step_func_done(function(e){
assert_true(obj.contentWindow instanceof Window, "The iframe element should represent a nested browsing context.")
assert_not_equals(obj.contentWindow, null, "The iframe element should represent a nested browsing context.")
assert_equals(Object.getPrototypeOf(e).constructor, Event, "The load event should use the Event interface.");
assert_true(e.isTrusted, "The load event should be a trusted event.");
assert_false(e.cancelable, "The load event should not be a cancelable event.");
@ -16,9 +16,7 @@ async_test(function(t) {
assert_equals(e.target, obj, "The load event target should be the corresponding object element.");
});
obj.onerror = t.step_func_done(function(e){
assert_unreached("The error event should not be fired.");
});
obj.onerror = t.unreached_func("The error event should not be fired.");
var url = URL.createObjectURL(new Blob([""], { type: "text/html" }));
@ -29,7 +27,7 @@ async_test(function(t) {
async_test(function(t) {
var obj = document.createElement("iframe");
obj.onload = t.step_func_done(function(e){
assert_true(obj.contentWindow instanceof Window, "The object element should represent a nested browsing context.")
assert_not_equals(obj.contentWindow, null, "The object element should represent a nested browsing context.")
assert_equals(Object.getPrototypeOf(e).constructor, Event, "The load event should use the Event interface.");
assert_true(e.isTrusted, "The load event should be a trusted event.");
assert_false(e.cancelable, "The load event should not be a cancelable event.");
@ -37,12 +35,9 @@ async_test(function(t) {
assert_equals(e.target, obj, "The load event target should be the corresponding object element.");
});
obj.onerror = t.step_func_done(function(e){
assert_unreached("The error event should not be fired.");
});
obj.onerror = t.unreached_func("The error event should not be fired.");
document.body.appendChild(obj);
}, "load event of initial about:blank");
</script>
</body>