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

Unified Diff: LayoutTests/fast/events/constructors/mouse-event-constructor-expected.txt

Issue 85263002: Improve handling of dictionary conversions. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Have conversion methods take a context argument; elaborate error msgs further. Created 7 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
Index: LayoutTests/fast/events/constructors/mouse-event-constructor-expected.txt
diff --git a/LayoutTests/fast/events/constructors/mouse-event-constructor-expected.txt b/LayoutTests/fast/events/constructors/mouse-event-constructor-expected.txt
index 24293129f39754423dac87979504ed61bb2014e9..12eeed951166199fcbf6754980fd8fe882d6ac5a 100644
--- a/LayoutTests/fast/events/constructors/mouse-event-constructor-expected.txt
+++ b/LayoutTests/fast/events/constructors/mouse-event-constructor-expected.txt
@@ -23,19 +23,20 @@ PASS new MouseEvent('eventType', { cancelable: false }).cancelable is false
PASS new MouseEvent('eventType', { cancelable: true }).cancelable is true
PASS new MouseEvent('eventType', { view: window }).view is window
PASS new MouseEvent('eventType', { view: this }).view is this
-PASS new MouseEvent('eventType', { view: testObject }).view is null
-PASS new MouseEvent('eventType', { view: document }).view is null
+PASS new MouseEvent('eventType', { view: testObject }).view threw exception TypeError: Failed to construct 'MouseEvent': The 'view' property does not have a Window type..
+PASS new MouseEvent('eventType', { view: document }).view threw exception TypeError: Failed to construct 'MouseEvent': The 'view' property does not have a Window type..
PASS new MouseEvent('eventType', { view: undefined }).view is null
PASS new MouseEvent('eventType', { view: null }).view is null
-PASS new MouseEvent('eventType', { view: false }).view is null
-PASS new MouseEvent('eventType', { view: true }).view is null
-PASS new MouseEvent('eventType', { view: '' }).view is null
-PASS new MouseEvent('eventType', { view: 'chocolate' }).view is null
-PASS new MouseEvent('eventType', { view: 12345 }).view is null
-PASS new MouseEvent('eventType', { view: 18446744073709551615 }).view is null
-PASS new MouseEvent('eventType', { view: NaN }).view is null
-PASS new MouseEvent('eventType', { view: {valueOf: function () { return window; } } }).view == window is false
-PASS new MouseEvent('eventType', { get view() { return 123; } }).view is null
+PASS new MouseEvent('eventType', { view: false }).view threw exception TypeError: Failed to construct 'MouseEvent': The 'view' property does not have a Window type..
+PASS new MouseEvent('eventType', { view: true }).view threw exception TypeError: Failed to construct 'MouseEvent': The 'view' property does not have a Window type..
+PASS new MouseEvent('eventType', { view: '' }).view threw exception TypeError: Failed to construct 'MouseEvent': The 'view' property does not have a Window type..
+PASS new MouseEvent('eventType', { view: 'chocolate' }).view threw exception TypeError: Failed to construct 'MouseEvent': The 'view' property does not have a Window type..
+PASS new MouseEvent('eventType', { view: 12345 }).view threw exception TypeError: Failed to construct 'MouseEvent': The 'view' property does not have a Window type..
+PASS new MouseEvent('eventType', { view: 18446744073709551615 }).view threw exception TypeError: Failed to construct 'MouseEvent': The 'view' property does not have a Window type..
+PASS new MouseEvent('eventType', { view: NaN }).view threw exception TypeError: Failed to construct 'MouseEvent': The 'view' property does not have a Window type..
+PASS new MouseEvent('eventType', { view: {valueOf: function () { return window; } } }).view == window threw exception TypeError: Failed to construct 'MouseEvent': The 'view' property does not have a Window type..
+PASS new MouseEvent('eventType', { get view() { return window; } }).view is window
+PASS new MouseEvent('eventType', { get view() { return 123; } }).view threw exception TypeError: Failed to construct 'MouseEvent': The 'view' property does not have a Window type..
PASS new MouseEvent('eventType', { get view() { throw 'MouseEvent Error'; } }) threw exception MouseEvent Error.
PASS new MouseEvent('eventType', { detail: 0 }).detail is 0
PASS new MouseEvent('eventType', { detail: 2147483647 }).detail is 2147483647
@@ -176,18 +177,19 @@ PASS new MouseEvent('eventType', { relatedTarget: testDiv }).relatedTarget is te
PASS new MouseEvent('eventType', { relatedTarget: document }).relatedTarget is document
PASS new MouseEvent('eventType', { relatedTarget: xhr }).relatedTarget is xhr
PASS new MouseEvent('eventType', { relatedTarget: window }).relatedTarget is window
-PASS new MouseEvent('eventType', { relatedTarget: testObject }).relatedTarget is null
+PASS new MouseEvent('eventType', { relatedTarget: testObject }).relatedTarget threw exception TypeError: Failed to construct 'MouseEvent': The 'relatedTarget' property does not have a EventTarget type..
PASS new MouseEvent('eventType', { relatedTarget: undefined }).relatedTarget is null
PASS new MouseEvent('eventType', { relatedTarget: null }).relatedTarget is null
-PASS new MouseEvent('eventType', { relatedTarget: false }).relatedTarget is null
-PASS new MouseEvent('eventType', { relatedTarget: true }).relatedTarget is null
-PASS new MouseEvent('eventType', { relatedTarget: '' }).relatedTarget is null
-PASS new MouseEvent('eventType', { relatedTarget: 'chocolate' }).relatedTarget is null
-PASS new MouseEvent('eventType', { relatedTarget: 12345 }).relatedTarget is null
-PASS new MouseEvent('eventType', { relatedTarget: 18446744073709551615 }).relatedTarget is null
-PASS new MouseEvent('eventType', { relatedTarget: NaN }).relatedTarget is null
-PASS new MouseEvent('eventType', { relatedTarget: {valueOf: function () { return testDiv; } } }).relatedTarget == testDiv is false
-PASS new MouseEvent('eventType', { get relatedTarget() { return 123; } }).relatedTarget is null
+PASS new MouseEvent('eventType', { relatedTarget: false }).relatedTarget threw exception TypeError: Failed to construct 'MouseEvent': The 'relatedTarget' property does not have a EventTarget type..
+PASS new MouseEvent('eventType', { relatedTarget: true }).relatedTarget threw exception TypeError: Failed to construct 'MouseEvent': The 'relatedTarget' property does not have a EventTarget type..
+PASS new MouseEvent('eventType', { relatedTarget: '' }).relatedTarget threw exception TypeError: Failed to construct 'MouseEvent': The 'relatedTarget' property does not have a EventTarget type..
+PASS new MouseEvent('eventType', { relatedTarget: 'chocolate' }).relatedTarget threw exception TypeError: Failed to construct 'MouseEvent': The 'relatedTarget' property does not have a EventTarget type..
+PASS new MouseEvent('eventType', { relatedTarget: 12345 }).relatedTarget threw exception TypeError: Failed to construct 'MouseEvent': The 'relatedTarget' property does not have a EventTarget type..
+PASS new MouseEvent('eventType', { relatedTarget: 18446744073709551615 }).relatedTarget threw exception TypeError: Failed to construct 'MouseEvent': The 'relatedTarget' property does not have a EventTarget type..
+PASS new MouseEvent('eventType', { relatedTarget: NaN }).relatedTarget threw exception TypeError: Failed to construct 'MouseEvent': The 'relatedTarget' property does not have a EventTarget type..
+PASS new MouseEvent('eventType', { relatedTarget: {valueOf: function () { return testDiv; } } }).relatedTarget == testDiv threw exception TypeError: Failed to construct 'MouseEvent': The 'relatedTarget' property does not have a EventTarget type..
+PASS new MouseEvent('eventType', { get relatedTarget() { return testDiv; } }).relatedTarget is testDiv
+PASS new MouseEvent('eventType', { get relatedTarget() { return 123; } }).relatedTarget threw exception TypeError: Failed to construct 'MouseEvent': The 'relatedTarget' property does not have a EventTarget type..
PASS new MouseEvent('eventType', { get relatedTarget() { throw 'MouseEvent Error'; } }) threw exception MouseEvent Error.
PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: testDiv }).bubbles is true
PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window, detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: testDiv }).cancelable is true

Powered by Google App Engine
This is Rietveld 408576698