Changeset 149171 in webkit


Ignore:
Timestamp:
Apr 26, 2013 2:16:34 AM (11 years ago)
Author:
Christophe Dumez
Message:

[Qt] REGRESSION(r149001): It made two fast/dom/DeviceMotion tests fail.
https://bugs.webkit.org/show_bug.cgi?id=115235

Reviewed by Kentaro Hara.

Update window-property.html test cases for DeviceMotion and DeviceOrientation.
The global constructors are no longer enumerable after r149001.

  • fast/dom/DeviceMotion/script-tests/window-property.js:
  • fast/dom/DeviceMotion/window-property-expected.txt:
  • fast/dom/DeviceOrientation/script-tests/window-property.js:
  • fast/dom/DeviceOrientation/window-property-expected.txt:
Location:
trunk/LayoutTests
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r149168 r149171  
     12013-04-26  Christophe Dumez  <ch.dumez@sisa.samsung.com>
     2
     3        [Qt] REGRESSION(r149001): It made two fast/dom/DeviceMotion tests fail.
     4        https://bugs.webkit.org/show_bug.cgi?id=115235
     5
     6        Reviewed by Kentaro Hara.
     7
     8        Update window-property.html test cases for DeviceMotion and DeviceOrientation.
     9        The global constructors are no longer enumerable after r149001.
     10
     11        * fast/dom/DeviceMotion/script-tests/window-property.js:
     12        * fast/dom/DeviceMotion/window-property-expected.txt:
     13        * fast/dom/DeviceOrientation/script-tests/window-property.js:
     14        * fast/dom/DeviceOrientation/window-property-expected.txt:
     15
    1162013-04-25  Mihnea Ovidenie  <mihnea@adobe.com>
    217
  • trunk/LayoutTests/fast/dom/DeviceMotion/script-tests/window-property.js

    r98407 r149171  
    11description("Tests that the window.DeviceMotionEvent and window.ondevicemotion properties are present.");
    2 
    3 function hasDeviceMotionEventProperty()
    4 {
    5     for (var property in window) {
    6         if (property == "DeviceMotionEvent")
    7             return true;
    8     }
    9     return false;
    10 }
    112
    123shouldBeTrue("typeof window.DeviceMotionEvent == 'object'");
    134shouldBeFalse("typeof window.DeviceMotionEvent == 'function'");
    14 shouldBeTrue("hasDeviceMotionEventProperty()");
     5shouldBeFalse("window.propertyIsEnumerable('DeviceMotionEvent')");
    156shouldBeTrue("'DeviceMotionEvent' in window");
    167shouldBeTrue("window.hasOwnProperty('DeviceMotionEvent')");
  • trunk/LayoutTests/fast/dom/DeviceMotion/window-property-expected.txt

    r65066 r149171  
    66PASS typeof window.DeviceMotionEvent == 'object' is true
    77PASS typeof window.DeviceMotionEvent == 'function' is false
    8 PASS hasDeviceMotionEventProperty() is true
     8PASS window.propertyIsEnumerable('DeviceMotionEvent') is false
    99PASS 'DeviceMotionEvent' in window is true
    1010PASS window.hasOwnProperty('DeviceMotionEvent') is true
  • trunk/LayoutTests/fast/dom/DeviceOrientation/script-tests/window-property.js

    r98407 r149171  
    11description('Tests that the window.DeviceOrientationEvent and window.ondeviceorientation properties are present.');
    2 
    3 function hasDeviceOrientationEventProperty()
    4 {
    5     for (var property in window) {
    6         if (property == 'DeviceOrientationEvent')
    7             return true;
    8     }
    9     return false;
    10 }
    112
    123shouldBeTrue("typeof window.DeviceOrientationEvent == 'object'");
    134shouldBeFalse("typeof window.DeviceOrientationEvent == 'function'");
    14 shouldBeTrue("hasDeviceOrientationEventProperty()");
     5shouldBeFalse("window.propertyIsEnumerable('DeviceOrientationEvent')");
    156shouldBeTrue("'DeviceOrientationEvent' in window");
    167shouldBeTrue("window.hasOwnProperty('DeviceOrientationEvent')");
  • trunk/LayoutTests/fast/dom/DeviceOrientation/window-property-expected.txt

    r64125 r149171  
    66PASS typeof window.DeviceOrientationEvent == 'object' is true
    77PASS typeof window.DeviceOrientationEvent == 'function' is false
    8 PASS hasDeviceOrientationEventProperty() is true
     8PASS window.propertyIsEnumerable('DeviceOrientationEvent') is false
    99PASS 'DeviceOrientationEvent' in window is true
    1010PASS window.hasOwnProperty('DeviceOrientationEvent') is true
Note: See TracChangeset for help on using the changeset viewer.