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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/DOMException/dispatch-event-exception-expected.txt

Issue 1479063003: Drop [LegacyInterfaceTypeChecking] for EventTarget's dispatchEvent() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test Created 5 years, 1 month 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/DOMException/resources/dispatch-event-exception.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/dom/DOMException/dispatch-event-exception-expected.txt
diff --git a/third_party/WebKit/LayoutTests/fast/dom/DOMException/dispatch-event-exception-expected.txt b/third_party/WebKit/LayoutTests/fast/dom/DOMException/dispatch-event-exception-expected.txt
index fe8d89914f57761f2e92dea1691a7ae2b29b517a..881edffcea52d4b5b1ebbcdab9493d40c87f3a07 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/DOMException/dispatch-event-exception-expected.txt
+++ b/third_party/WebKit/LayoutTests/fast/dom/DOMException/dispatch-event-exception-expected.txt
@@ -1,13 +1,10 @@
-Tests the properties of the exception thrown by dispatchEvent.
+Tests that dispatchEvent's argument is required to be an Event.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-PASS e.toString() is "InvalidStateError: Failed to execute 'dispatchEvent' on 'EventTarget': The event provided is null."
-PASS Object.prototype.toString.call(e) is "[object DOMException]"
-FAIL Object.prototype.toString.call(e.__proto__) should be [object DOMExceptionPrototype]. Was [object Object].
-PASS e.constructor.toString() is "function DOMException() { [native code] }"
-PASS e.constructor is window.DOMException
+PASS document.dispatchEvent(null) threw exception TypeError: Failed to execute 'dispatchEvent' on 'EventTarget': parameter 1 is not of type 'Event'..
+PASS document.dispatchEvent(document) threw exception TypeError: Failed to execute 'dispatchEvent' on 'EventTarget': parameter 1 is not of type 'Event'..
PASS successfullyParsed is true
TEST COMPLETE
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/DOMException/resources/dispatch-event-exception.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698