mirror of
https://github.com/servo/servo
synced 2026-05-02 20:32:02 +02:00
Update web-platform-tests to revision 1e42017386ce1eaeed4925fb8bc7f5417752019a
This commit is contained in:
@@ -25,6 +25,21 @@ async_test(function(t) {
|
||||
document.body.appendChild(obj);
|
||||
}, "error event");
|
||||
|
||||
async_test(function(t) {
|
||||
var obj = document.createElement("object");
|
||||
obj.onerror = t.step_func_done(function(e){
|
||||
assert_equals(e.target, obj,
|
||||
"The error event should be fired on our element");
|
||||
});
|
||||
obj.onload = t.step_func_done(function(e){
|
||||
assert_unreached("The load event should not be fired.");
|
||||
});
|
||||
|
||||
obj.data = "http://test:test";
|
||||
document.body.appendChild(obj);
|
||||
}, "error event");
|
||||
|
||||
|
||||
async_test(function(t) {
|
||||
var obj = document.createElement("object");
|
||||
obj.onload = t.step_func_done(function(e){
|
||||
|
||||
Reference in New Issue
Block a user