Index: LayoutTests/fast/events/constructors/focus-event-constructor-expected.txt |
diff --git a/LayoutTests/fast/events/constructors/focus-event-constructor-expected.txt b/LayoutTests/fast/events/constructors/focus-event-constructor-expected.txt |
index 346033e5f8b7f7780f1d0e3ca47a2afb1e56274b..213441e617da3de579a4eb5af1758e9efeb5762a 100644 |
--- a/LayoutTests/fast/events/constructors/focus-event-constructor-expected.txt |
+++ b/LayoutTests/fast/events/constructors/focus-event-constructor-expected.txt |
@@ -14,36 +14,38 @@ PASS new FocusEvent('eventType', { cancelable: false }).cancelable is false |
PASS new FocusEvent('eventType', { cancelable: true }).cancelable is true |
PASS new FocusEvent('eventType', { view: window }).view is window |
PASS new FocusEvent('eventType', { view: this }).view is this |
-PASS new FocusEvent('eventType', { view: testObject }).view is null |
-PASS new FocusEvent('eventType', { view: document }).view is null |
+PASS new FocusEvent('eventType', { view: testObject }).view threw exception TypeError: Failed to construct 'FocusEvent': The 'view' property does not have a Window type.. |
+PASS new FocusEvent('eventType', { view: document }).view threw exception TypeError: Failed to construct 'FocusEvent': The 'view' property does not have a Window type.. |
PASS new FocusEvent('eventType', { view: undefined }).view is null |
PASS new FocusEvent('eventType', { view: null }).view is null |
-PASS new FocusEvent('eventType', { view: false }).view is null |
-PASS new FocusEvent('eventType', { view: true }).view is null |
-PASS new FocusEvent('eventType', { view: '' }).view is null |
-PASS new FocusEvent('eventType', { view: 'chocolate' }).view is null |
-PASS new FocusEvent('eventType', { view: 12345 }).view is null |
-PASS new FocusEvent('eventType', { view: 18446744073709551615 }).view is null |
-PASS new FocusEvent('eventType', { view: NaN }).view is null |
-PASS new FocusEvent('eventType', { view: {valueOf: function () { return window; } } }).view == window is false |
-PASS new FocusEvent('eventType', { get view() { return 123; } }).view is null |
+PASS new FocusEvent('eventType', { view: false }).view threw exception TypeError: Failed to construct 'FocusEvent': The 'view' property does not have a Window type.. |
+PASS new FocusEvent('eventType', { view: true }).view threw exception TypeError: Failed to construct 'FocusEvent': The 'view' property does not have a Window type.. |
+PASS new FocusEvent('eventType', { view: '' }).view threw exception TypeError: Failed to construct 'FocusEvent': The 'view' property does not have a Window type.. |
+PASS new FocusEvent('eventType', { view: 'chocolate' }).view threw exception TypeError: Failed to construct 'FocusEvent': The 'view' property does not have a Window type.. |
+PASS new FocusEvent('eventType', { view: 12345 }).view threw exception TypeError: Failed to construct 'FocusEvent': The 'view' property does not have a Window type.. |
+PASS new FocusEvent('eventType', { view: 18446744073709551615 }).view threw exception TypeError: Failed to construct 'FocusEvent': The 'view' property does not have a Window type.. |
+PASS new FocusEvent('eventType', { view: NaN }).view threw exception TypeError: Failed to construct 'FocusEvent': The 'view' property does not have a Window type.. |
+PASS new FocusEvent('eventType', { view: {valueOf: function () { return window; } } }).view == window threw exception TypeError: Failed to construct 'FocusEvent': The 'view' property does not have a Window type.. |
+PASS new FocusEvent('eventType', { get view() { return window; } }).view is window |
+PASS new FocusEvent('eventType', { get view() { return 123; } }).view threw exception TypeError: Failed to construct 'FocusEvent': The 'view' property does not have a Window type.. |
PASS new FocusEvent('eventType', { get view() { throw 'FocusEvent Error'; } }) threw exception FocusEvent Error. |
PASS new FocusEvent('eventType', { relatedTarget: testDiv }).relatedTarget is testDiv |
PASS new FocusEvent('eventType', { relatedTarget: document }).relatedTarget is document |
PASS new FocusEvent('eventType', { relatedTarget: xhr }).relatedTarget is xhr |
PASS new FocusEvent('eventType', { relatedTarget: window }).relatedTarget is window |
-PASS new FocusEvent('eventType', { relatedTarget: testObject }).relatedTarget is null |
+PASS new FocusEvent('eventType', { relatedTarget: testObject }).relatedTarget threw exception TypeError: Failed to construct 'FocusEvent': The 'relatedTarget' property does not have a EventTarget type.. |
PASS new FocusEvent('eventType', { relatedTarget: undefined }).relatedTarget is null |
PASS new FocusEvent('eventType', { relatedTarget: null }).relatedTarget is null |
-PASS new FocusEvent('eventType', { relatedTarget: false }).relatedTarget is null |
-PASS new FocusEvent('eventType', { relatedTarget: true }).relatedTarget is null |
-PASS new FocusEvent('eventType', { relatedTarget: '' }).relatedTarget is null |
-PASS new FocusEvent('eventType', { relatedTarget: 'chocolate' }).relatedTarget is null |
-PASS new FocusEvent('eventType', { relatedTarget: 12345 }).relatedTarget is null |
-PASS new FocusEvent('eventType', { relatedTarget: 18446744073709551615 }).relatedTarget is null |
-PASS new FocusEvent('eventType', { relatedTarget: NaN }).relatedTarget is null |
-PASS new FocusEvent('eventType', { relatedTarget: {valueOf: function () { return testDiv; } } }).relatedTarget == testDiv is false |
-PASS new FocusEvent('eventType', { get relatedTarget() { return 123; } }).relatedTarget is null |
+PASS new FocusEvent('eventType', { relatedTarget: false }).relatedTarget threw exception TypeError: Failed to construct 'FocusEvent': The 'relatedTarget' property does not have a EventTarget type.. |
+PASS new FocusEvent('eventType', { relatedTarget: true }).relatedTarget threw exception TypeError: Failed to construct 'FocusEvent': The 'relatedTarget' property does not have a EventTarget type.. |
+PASS new FocusEvent('eventType', { relatedTarget: '' }).relatedTarget threw exception TypeError: Failed to construct 'FocusEvent': The 'relatedTarget' property does not have a EventTarget type.. |
+PASS new FocusEvent('eventType', { relatedTarget: 'chocolate' }).relatedTarget threw exception TypeError: Failed to construct 'FocusEvent': The 'relatedTarget' property does not have a EventTarget type.. |
+PASS new FocusEvent('eventType', { relatedTarget: 12345 }).relatedTarget threw exception TypeError: Failed to construct 'FocusEvent': The 'relatedTarget' property does not have a EventTarget type.. |
+PASS new FocusEvent('eventType', { relatedTarget: 18446744073709551615 }).relatedTarget threw exception TypeError: Failed to construct 'FocusEvent': The 'relatedTarget' property does not have a EventTarget type.. |
+PASS new FocusEvent('eventType', { relatedTarget: NaN }).relatedTarget threw exception TypeError: Failed to construct 'FocusEvent': The 'relatedTarget' property does not have a EventTarget type.. |
+PASS new FocusEvent('eventType', { relatedTarget: {valueOf: function () { return testDiv; } } }).relatedTarget == testDiv threw exception TypeError: Failed to construct 'FocusEvent': The 'relatedTarget' property does not have a EventTarget type.. |
+PASS new FocusEvent('eventType', { get relatedTarget() { return testDiv; } }).relatedTarget == testDiv is true |
+PASS new FocusEvent('eventType', { get relatedTarget() { return 123; } }).relatedTarget threw exception TypeError: Failed to construct 'FocusEvent': The 'relatedTarget' property does not have a EventTarget type.. |
PASS new FocusEvent('eventType', { get relatedTarget() { throw 'FocusEvent Error'; } }) threw exception FocusEvent Error. |
PASS new FocusEvent('eventType', { bubbles: true, cancelable: true, view: window, detail: 111, relatedTarget: testDiv }).bubbles is true |
PASS new FocusEvent('eventType', { bubbles: true, cancelable: true, view: window, detail: 111, relatedTarget: testDiv }).cancelable is true |