mirror of
https://github.com/servo/servo.git
synced 2025-09-12 16:08:20 +01:00
Update web-platform-tests to revision 58eb04cecbbec2e18531ab440225e38944a9c444
This commit is contained in:
parent
25e8bf69e6
commit
665817d2a6
35333 changed files with 1818077 additions and 16036 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue