Index: third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/events/Event-constructors.html |
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/events/Event-constructors.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/events/Event-constructors.html |
index a3247afe6686afff23ed8540ee983f97ba30f430..5732d7f36a083689e65fa8b7b6a9a39c93c71875 100644 |
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/events/Event-constructors.html |
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/events/Event-constructors.html |
@@ -42,17 +42,8 @@ test(function() { |
assert_true("initEvent" in ev) |
}) |
test(function() { |
- var ev = Event("test") |
- assert_equals(ev.type, "test") |
- assert_equals(ev.target, null) |
- assert_equals(ev.currentTarget, null) |
- assert_equals(ev.eventPhase, Event.NONE) |
- assert_equals(ev.bubbles, false) |
- assert_equals(ev.cancelable, false) |
- assert_equals(ev.defaultPrevented, false) |
- assert_equals(ev.isTrusted, false) |
- assert_true(ev.timeStamp > 0) |
- assert_true("initEvent" in ev) |
+ assert_throws(new TypeError(), function() { Event("test") }, |
+ 'Calling Event constructor without "new" must throw'); |
}) |
test(function() { |
var ev = new Event("I am an event", { bubbles: true, cancelable: false}) |