Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/events/Event-constructors.html

Issue 1899623002: Import latest web-platform-tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: handle new failures Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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})

Powered by Google App Engine
This is Rietveld 408576698