Changeset 66876 in webkit


Ignore:
Timestamp:
Sep 7, 2010 5:11:40 AM (14 years ago)
Author:
steveblock@google.com
Message:

2010-09-07 Steve Block <steveblock@google.com>

Reviewed by Jeremy Orlow.

Provide DeviceOrientation LayoutTests
https://bugs.webkit.org/show_bug.cgi?id=39590

Adds several new DeviceOrientation tests. Also fixes some style in existing tests.

  • fast/dom/DeviceOrientation/add-listener-from-callback.html: Added.
  • fast/dom/DeviceOrientation/script-tests/add-listener-from-callback.js: Added.
  • fast/dom/DeviceOrientation/add-listener-from-callback-expected.txt: Added.
  • fast/dom/DeviceOrientation/multiple-frames.html: Added.
  • fast/dom/DeviceOrientation/script-tests/multiple-frames.js: Added.
  • fast/dom/DeviceOrientation/multiple-frames-expected.txt: Added.
  • fast/dom/DeviceOrientation/no-synchronous-events.html: Added.
  • fast/dom/DeviceOrientation/script-tests/no-synchronous-events.js: Added.
  • fast/dom/DeviceOrientation/no-synchronous-events-expected.txt: Added.
  • fast/dom/DeviceOrientation/null-values.html: Added.
  • fast/dom/DeviceOrientation/script-tests/null-values.js: Added.
  • fast/dom/DeviceOrientation/null-values-expected.txt: Added.
  • fast/dom/DeviceOrientation/updates.html: Added.
  • fast/dom/DeviceOrientation/script-tests/updates.js: Added.
  • fast/dom/DeviceOrientation/updates-expected.txt: Added.
  • fast/dom/DeviceOrientation/script-tests/basic-operation.js:
  • fast/dom/DeviceOrientation/script-tests/create-event.js:
  • fast/dom/DeviceOrientation/script-tests/optional-event-properties.js:
  • fast/dom/DeviceOrientation/script-tests/window-property.js:
Location:
trunk/LayoutTests
Files:
15 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r66874 r66876  
     12010-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
    1302010-09-07  Csaba Osztrogonác  <ossy@webkit.org>
    231
  • trunk/LayoutTests/fast/dom/DeviceOrientation/script-tests/basic-operation.js

    r64356 r66876  
    1 description("Tests the basic operation of DeviceOrientation using the mock.");
     1description('Tests the basic operation of DeviceOrientation using the mock.');
    22
    33var mockAlpha = 1.1;
     
    1111
    1212var deviceOrientationEvent;
    13 window.addEventListener("deviceorientation", function(e) {
     13window.addEventListener('deviceorientation', function(e) {
    1414    deviceOrientationEvent = e;
    1515    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.");
     1description('Tests that document.createEvent() works with DeviceOrientationEvent.');
    22
    33var 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.");
     1description('Tests the optional properties of DeviceOrientationEvent. Each property should be null if not set, or set to null or undefined.');
    22
    33var 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.");
     1description('Tests that the window.DeviceOrientationEvent and window.ondeviceorientation properties are present.');
    22
    33function hasDeviceOrientationEventProperty()
    44{
    55    for (var property in window) {
    6         if (property == "DeviceOrientationEvent")
     6        if (property == 'DeviceOrientationEvent')
    77            return true;
    88    }
     
    1919{
    2020    for (var property in window) {
    21         if (property == "ondeviceorientation")
     21        if (property == 'ondeviceorientation')
    2222            return true;
    2323    }
Note: See TracChangeset for help on using the changeset viewer.