diff options
Diffstat (limited to 'LayoutTests/fast/dom/DeviceOrientation/optional-event-properties-expected.txt')
-rw-r--r-- | LayoutTests/fast/dom/DeviceOrientation/optional-event-properties-expected.txt | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/LayoutTests/fast/dom/DeviceOrientation/optional-event-properties-expected.txt b/LayoutTests/fast/dom/DeviceOrientation/optional-event-properties-expected.txt new file mode 100644 index 0000000..cd0e933 --- /dev/null +++ b/LayoutTests/fast/dom/DeviceOrientation/optional-event-properties-expected.txt @@ -0,0 +1,37 @@ +Tests the optional properties of DeviceOrientationEvent. Each property should be null if not set, or set to null or undefined. + +On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". + + +event = document.createEvent('DeviceOrientationEvent') +PASS event.alpha == null is true +PASS event.beta == null is true +PASS event.gamma == null is true +event.initDeviceOrientationEvent('', false, false, 0, 1, 2) +PASS event.alpha == 0 is true +PASS event.beta == 1 is true +PASS event.gamma == 2 is true +event.initDeviceOrientationEvent() +PASS event.alpha == null is true +PASS event.beta == null is true +PASS event.gamma == null is true +event.initDeviceOrientationEvent('', false, false, [], [], []) +PASS event.alpha == 0 is true +PASS event.beta == 0 is true +PASS event.gamma == 0 is true +event.initDeviceOrientationEvent('', false, false, undefined, undefined, undefined) +PASS event.alpha == null is true +PASS event.beta == null is true +PASS event.gamma == null is true +event.initDeviceOrientationEvent('', false, false, '', '', '') +PASS event.alpha == 0 is true +PASS event.beta == 0 is true +PASS event.gamma == 0 is true +event.initDeviceOrientationEvent('', false, false, null, null, null) +PASS event.alpha == null is true +PASS event.beta == null is true +PASS event.gamma == null is true +PASS successfullyParsed is true + +TEST COMPLETE + |