optional-event-properties-expected.txt revision 4e1f8b9c727ac820b633f6de547dc9afcd8da485
1Tests the optional properties of DeviceOrientationEvent. Each property should be null if not set, or set to null or undefined. 2 3On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 4 5 6event = document.createEvent('DeviceOrientationEvent') 7PASS event.alpha == null is true 8PASS event.beta == null is true 9PASS event.gamma == null is true 10event.initDeviceOrientationEvent('', false, false, 0, 1, 2) 11PASS event.alpha == 0 is true 12PASS event.beta == 1 is true 13PASS event.gamma == 2 is true 14event.initDeviceOrientationEvent() 15PASS event.alpha == null is true 16PASS event.beta == null is true 17PASS event.gamma == null is true 18event.initDeviceOrientationEvent('', false, false, [], [], []) 19PASS event.alpha == 0 is true 20PASS event.beta == 0 is true 21PASS event.gamma == 0 is true 22event.initDeviceOrientationEvent('', false, false, undefined, undefined, undefined) 23PASS event.alpha == null is true 24PASS event.beta == null is true 25PASS event.gamma == null is true 26event.initDeviceOrientationEvent('', false, false, '', '', '') 27PASS event.alpha == 0 is true 28PASS event.beta == 0 is true 29PASS event.gamma == 0 is true 30event.initDeviceOrientationEvent('', false, false, null, null, null) 31PASS event.alpha == null is true 32PASS event.beta == null is true 33PASS event.gamma == null is true 34PASS successfullyParsed is true 35 36TEST COMPLETE 37 38