Null dereference loading Blink layout test fast/loader/unload-mutation-crash.html
[WebKit-https.git] / LayoutTests / proximity / window-property.html
index dc4cebe..25e0c6d 100644 (file)
@@ -1,23 +1,14 @@
 <html>
 <head>
-<script src="../fast/js/resources/js-test-pre.js"></script>
+<script src="../resources/js-test-pre.js"></script>
 </head>
 <body>
 <script>
 description('Tests that the window.DeviceProximityEvent and window.onwebkitdeviceproximity properties are present.');
 
-function hasDeviceProximityEventProperty()
-{
-    for (var property in window) {
-        if (property == 'DeviceProximityEvent')
-            return true;
-    }
-    return false;
-}
-
 shouldBeTrue("typeof window.DeviceProximityEvent == 'object'");
 shouldBeFalse("typeof window.DeviceProximityEvent == 'function'");
-shouldBeTrue("hasDeviceProximityEventProperty()");
+shouldBeFalse("window.propertyIsEnumerable('DeviceProximityEvent')");
 shouldBeTrue("'DeviceProximityEvent' in window");
 shouldBeTrue("window.hasOwnProperty('DeviceProximityEvent')");
 
@@ -35,6 +26,6 @@ shouldBeTrue("hasOnDeviceProximityProperty()");
 shouldBeTrue("'onwebkitdeviceproximity' in window");
 shouldBeTrue("window.hasOwnProperty('onwebkitdeviceproximity')");
 </script>
-<script src="../fast/js/resources/js-test-post.js"></script>
+<script src="../resources/js-test-post.js"></script>
 </body>
 </html>