Update web-platform-tests to revision 58eb04cecbbec2e18531ab440225e38944a9c444

This commit is contained in:
Josh Matthews 2017-04-17 12:06:02 +10:00 committed by Anthony Ramine
parent 25e8bf69e6
commit 665817d2a6
35333 changed files with 1818077 additions and 16036 deletions

View file

@ -116,4 +116,19 @@ async_test(function() {
this.done()
}, "Calling initEvent during propagation.")
test(function() {
var e = document.createEvent("Event")
assert_throws(new TypeError(), function() {
e.initEvent()
})
}, "First parameter to initEvent should be mandatory.")
test(function() {
var e = document.createEvent("Event")
e.initEvent("type")
assert_equals(e.type, "type", "type")
assert_false(e.bubbles, "bubbles")
assert_false(e.cancelable, "cancelable")
}, "Tests initEvent's default parameter values.")
</script>