REGRESSION: r149001 made proximity test fail.

https://bugs.webkit.org/show_bug.cgi?id=117343

Reviewed by Christophe Dumez.

Update window-property.html test cases for Device Proximity Event.
The global constructors are no longer enumerable after r149001.

* proximity/window-property-expected.txt:
* proximity/window-property.html:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@151317 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 5df2c740
2013-06-07 Kihong Kwon <kihong.kwon@samsung.com>
REGRESSION: r149001 made proximity test fail.
https://bugs.webkit.org/show_bug.cgi?id=117343
Reviewed by Christophe Dumez.
Update window-property.html test cases for Device Proximity Event.
The global constructors are no longer enumerable after r149001.
* proximity/window-property-expected.txt:
* proximity/window-property.html:
2013-06-07 Gabor Abraham <abrhm@inf.u-szeged.hu> 2013-06-07 Gabor Abraham <abrhm@inf.u-szeged.hu>
[Qt] Unreviewed gardening. Skipping failing tests. [Qt] Unreviewed gardening. Skipping failing tests.
......
...@@ -5,7 +5,7 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ...@@ -5,7 +5,7 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
PASS typeof window.DeviceProximityEvent == 'object' is true PASS typeof window.DeviceProximityEvent == 'object' is true
PASS typeof window.DeviceProximityEvent == 'function' is false PASS typeof window.DeviceProximityEvent == 'function' is false
PASS hasDeviceProximityEventProperty() is true PASS window.propertyIsEnumerable('DeviceProximityEvent') is false
PASS 'DeviceProximityEvent' in window is true PASS 'DeviceProximityEvent' in window is true
PASS window.hasOwnProperty('DeviceProximityEvent') is true PASS window.hasOwnProperty('DeviceProximityEvent') is true
PASS typeof window.onwebkitdeviceproximity == 'object' is true PASS typeof window.onwebkitdeviceproximity == 'object' is true
......
...@@ -6,18 +6,9 @@ ...@@ -6,18 +6,9 @@
<script> <script>
description('Tests that the window.DeviceProximityEvent and window.onwebkitdeviceproximity properties are present.'); 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'"); shouldBeTrue("typeof window.DeviceProximityEvent == 'object'");
shouldBeFalse("typeof window.DeviceProximityEvent == 'function'"); shouldBeFalse("typeof window.DeviceProximityEvent == 'function'");
shouldBeTrue("hasDeviceProximityEventProperty()"); shouldBeFalse("window.propertyIsEnumerable('DeviceProximityEvent')");
shouldBeTrue("'DeviceProximityEvent' in window"); shouldBeTrue("'DeviceProximityEvent' in window");
shouldBeTrue("window.hasOwnProperty('DeviceProximityEvent')"); shouldBeTrue("window.hasOwnProperty('DeviceProximityEvent')");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment