Skip to content

Commit

Permalink
Make initEvent's first argument non-optional
Browse files Browse the repository at this point in the history
whatwg/dom#387

BUG=673698

Review-Url: https://codereview.chromium.org/2579993002
Cr-Commit-Position: refs/heads/master@{#458108}
  • Loading branch information
LoonyBean authored and Commit bot committed Mar 20, 2017
1 parent 2fb2a74 commit 2948f11
Show file tree
Hide file tree
Showing 6 changed files with 4,846 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
This is a testharness.js-based test.
Found 1609 tests; 1423 PASS, 186 FAIL, 0 TIMEOUT, 0 NOTRUN.
Found 1609 tests; 1428 PASS, 181 FAIL, 0 TIMEOUT, 0 NOTRUN.
PASS Event interface: existence and properties of interface object
PASS Event interface object length
PASS Event interface object name
Expand All @@ -24,7 +24,7 @@ PASS Event interface: attribute cancelable
PASS Event interface: operation preventDefault()
PASS Event interface: attribute defaultPrevented
PASS Event interface: attribute timeStamp
FAIL Event interface: operation initEvent(DOMString,boolean,boolean) assert_equals: property has wrong .length expected 1 but got 0
PASS Event interface: operation initEvent(DOMString,boolean,boolean)
PASS Event must be primary interface of document.createEvent("Event")
PASS Stringification of document.createEvent("Event")
PASS Event interface: document.createEvent("Event") must inherit property "type" with the proper type (0)
Expand All @@ -44,9 +44,7 @@ PASS Event interface: document.createEvent("Event") must inherit property "defau
PASS Event interface: document.createEvent("Event") must have own property "isTrusted"
PASS Event interface: document.createEvent("Event") must inherit property "timeStamp" with the proper type (15)
PASS Event interface: document.createEvent("Event") must inherit property "initEvent" with the proper type (16)
FAIL Event interface: calling initEvent(DOMString,boolean,boolean) on document.createEvent("Event") with too few arguments must throw TypeError assert_throws: Called with 0 arguments function "function () {
fn.apply(obj, args);
}" did not throw
PASS Event interface: calling initEvent(DOMString,boolean,boolean) on document.createEvent("Event") with too few arguments must throw TypeError
PASS Event must be primary interface of new Event("foo")
PASS Stringification of new Event("foo")
PASS Event interface: new Event("foo") must inherit property "type" with the proper type (0)
Expand All @@ -66,9 +64,7 @@ PASS Event interface: new Event("foo") must inherit property "defaultPrevented"
PASS Event interface: new Event("foo") must have own property "isTrusted"
PASS Event interface: new Event("foo") must inherit property "timeStamp" with the proper type (15)
PASS Event interface: new Event("foo") must inherit property "initEvent" with the proper type (16)
FAIL Event interface: calling initEvent(DOMString,boolean,boolean) on new Event("foo") with too few arguments must throw TypeError assert_throws: Called with 0 arguments function "function () {
fn.apply(obj, args);
}" did not throw
PASS Event interface: calling initEvent(DOMString,boolean,boolean) on new Event("foo") with too few arguments must throw TypeError
PASS CustomEvent interface: existence and properties of interface object
PASS CustomEvent interface object length
PASS CustomEvent interface object name
Expand Down Expand Up @@ -98,9 +94,7 @@ PASS Event interface: new CustomEvent("foo") must inherit property "defaultPreve
PASS Event interface: new CustomEvent("foo") must have own property "isTrusted"
PASS Event interface: new CustomEvent("foo") must inherit property "timeStamp" with the proper type (15)
PASS Event interface: new CustomEvent("foo") must inherit property "initEvent" with the proper type (16)
FAIL Event interface: calling initEvent(DOMString,boolean,boolean) on new CustomEvent("foo") with too few arguments must throw TypeError assert_throws: Called with 0 arguments function "function () {
fn.apply(obj, args);
}" did not throw
PASS Event interface: calling initEvent(DOMString,boolean,boolean) on new CustomEvent("foo") with too few arguments must throw TypeError
PASS EventTarget interface: existence and properties of interface object
PASS EventTarget interface object length
PASS EventTarget interface object name
Expand Down
Loading

0 comments on commit 2948f11

Please sign in to comment.