Changeset 66876 in webkit
- Timestamp:
- Sep 7, 2010 5:11:40 AM (14 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 15 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r66874 r66876 1 2010-09-07 Steve Block <steveblock@google.com> 2 3 Reviewed by Jeremy Orlow. 4 5 Provide DeviceOrientation LayoutTests 6 https://bugs.webkit.org/show_bug.cgi?id=39590 7 8 Adds several new DeviceOrientation tests. Also fixes some style in existing tests. 9 10 * fast/dom/DeviceOrientation/add-listener-from-callback.html: Added. 11 * fast/dom/DeviceOrientation/script-tests/add-listener-from-callback.js: Added. 12 * fast/dom/DeviceOrientation/add-listener-from-callback-expected.txt: Added. 13 * fast/dom/DeviceOrientation/multiple-frames.html: Added. 14 * fast/dom/DeviceOrientation/script-tests/multiple-frames.js: Added. 15 * fast/dom/DeviceOrientation/multiple-frames-expected.txt: Added. 16 * fast/dom/DeviceOrientation/no-synchronous-events.html: Added. 17 * fast/dom/DeviceOrientation/script-tests/no-synchronous-events.js: Added. 18 * fast/dom/DeviceOrientation/no-synchronous-events-expected.txt: Added. 19 * fast/dom/DeviceOrientation/null-values.html: Added. 20 * fast/dom/DeviceOrientation/script-tests/null-values.js: Added. 21 * fast/dom/DeviceOrientation/null-values-expected.txt: Added. 22 * fast/dom/DeviceOrientation/updates.html: Added. 23 * fast/dom/DeviceOrientation/script-tests/updates.js: Added. 24 * fast/dom/DeviceOrientation/updates-expected.txt: Added. 25 * fast/dom/DeviceOrientation/script-tests/basic-operation.js: 26 * fast/dom/DeviceOrientation/script-tests/create-event.js: 27 * fast/dom/DeviceOrientation/script-tests/optional-event-properties.js: 28 * fast/dom/DeviceOrientation/script-tests/window-property.js: 29 1 30 2010-09-07 Csaba Osztrogonác <ossy@webkit.org> 2 31 -
trunk/LayoutTests/fast/dom/DeviceOrientation/script-tests/basic-operation.js
r64356 r66876 1 description( "Tests the basic operation of DeviceOrientation using the mock.");1 description('Tests the basic operation of DeviceOrientation using the mock.'); 2 2 3 3 var mockAlpha = 1.1; … … 11 11 12 12 var deviceOrientationEvent; 13 window.addEventListener( "deviceorientation", function(e) {13 window.addEventListener('deviceorientation', function(e) { 14 14 deviceOrientationEvent = e; 15 15 shouldBe('deviceOrientationEvent.alpha', 'mockAlpha'); -
trunk/LayoutTests/fast/dom/DeviceOrientation/script-tests/create-event.js
r62659 r66876 1 description( "Tests that document.createEvent() works with DeviceOrientationEvent.");1 description('Tests that document.createEvent() works with DeviceOrientationEvent.'); 2 2 3 3 var event = document.createEvent('DeviceOrientationEvent'); -
trunk/LayoutTests/fast/dom/DeviceOrientation/script-tests/optional-event-properties.js
r63193 r66876 1 description( "Tests the optional properties of DeviceOrientationEvent. Each property should be null if not set, or set to null or undefined.");1 description('Tests the optional properties of DeviceOrientationEvent. Each property should be null if not set, or set to null or undefined.'); 2 2 3 3 var event; -
trunk/LayoutTests/fast/dom/DeviceOrientation/script-tests/window-property.js
r64125 r66876 1 description( "Tests that the window.DeviceOrientationEvent and window.ondeviceorientation properties are present.");1 description('Tests that the window.DeviceOrientationEvent and window.ondeviceorientation properties are present.'); 2 2 3 3 function hasDeviceOrientationEventProperty() 4 4 { 5 5 for (var property in window) { 6 if (property == "DeviceOrientationEvent")6 if (property == 'DeviceOrientationEvent') 7 7 return true; 8 8 } … … 19 19 { 20 20 for (var property in window) { 21 if (property == "ondeviceorientation")21 if (property == 'ondeviceorientation') 22 22 return true; 23 23 }
Note: See TracChangeset
for help on using the changeset viewer.