| Index: LayoutTests/fast/dom/DeviceOrientation/script-tests/window-property.js
|
| diff --git a/LayoutTests/fast/dom/DeviceOrientation/script-tests/window-property.js b/LayoutTests/fast/dom/DeviceOrientation/script-tests/window-property.js
|
| index 0d8750a842071c4f82eae24a2af07fc73982458f..58c3c8d6d9ca27fa03b18b979d9d41006f1aa52c 100644
|
| --- a/LayoutTests/fast/dom/DeviceOrientation/script-tests/window-property.js
|
| +++ b/LayoutTests/fast/dom/DeviceOrientation/script-tests/window-property.js
|
| @@ -1,17 +1,8 @@
|
| description('Tests that the window.DeviceOrientationEvent and window.ondeviceorientation properties are present.');
|
|
|
| -function hasDeviceOrientationEventProperty()
|
| -{
|
| - for (var property in window) {
|
| - if (property == 'DeviceOrientationEvent')
|
| - return true;
|
| - }
|
| - return false;
|
| -}
|
| -
|
| shouldBeTrue("typeof window.DeviceOrientationEvent == 'object'");
|
| shouldBeFalse("typeof window.DeviceOrientationEvent == 'function'");
|
| -shouldBeTrue("hasDeviceOrientationEventProperty()");
|
| +shouldBeFalse("window.propertyIsEnumerable('DeviceOrientationEvent')");
|
| shouldBeTrue("'DeviceOrientationEvent' in window");
|
| shouldBeTrue("window.hasOwnProperty('DeviceOrientationEvent')");
|
|
|
|
|