Reviewed by Jeremy Orlow.
LayoutTests/fast/dom/DeviceOrientation/window-property.html assumes use of V8
https://bugs.webkit.org/show_bug.cgi?id=43025
This change modifies window-property.html and its expected result to work with JSC.
A V8-specific expected result is added for Android.
* fast/dom/DeviceOrientation/script-tests/window-property.js:
* fast/dom/DeviceOrientation/window-property-expected.txt:
* platform/android-v8: Added.
* platform/android-v8/fast: Added.
* platform/android-v8/fast/dom: Added.
* platform/android-v8/fast/dom/DeviceOrientation: Added.
* platform/android-v8/fast/dom/DeviceOrientation/window-property-expected.txt: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64125
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2010-07-27 Steve Block <steveblock@google.com>
+
+ Reviewed by Jeremy Orlow.
+
+ LayoutTests/fast/dom/DeviceOrientation/window-property.html assumes use of V8
+ https://bugs.webkit.org/show_bug.cgi?id=43025
+
+ This change modifies window-property.html and its expected result to work with JSC.
+ A V8-specific expected result is added for Android.
+
+ * fast/dom/DeviceOrientation/script-tests/window-property.js:
+ * fast/dom/DeviceOrientation/window-property-expected.txt:
+ * platform/android-v8: Added.
+ * platform/android-v8/fast: Added.
+ * platform/android-v8/fast/dom: Added.
+ * platform/android-v8/fast/dom/DeviceOrientation: Added.
+ * platform/android-v8/fast/dom/DeviceOrientation/window-property-expected.txt: Added.
+
2010-07-27 Anton Muhin <antonm@chromium.org>
Reviewed by Darin Adler.
return false;
}
-shouldBeTrue("typeof window.DeviceOrientationEvent == 'function'");
+shouldBeTrue("typeof window.DeviceOrientationEvent == 'object'");
+shouldBeFalse("typeof window.DeviceOrientationEvent == 'function'");
shouldBeTrue("hasDeviceOrientationEventProperty()");
shouldBeTrue("'DeviceOrientationEvent' in window");
shouldBeTrue("window.hasOwnProperty('DeviceOrientationEvent')");
shouldBeTrue("typeof window.ondeviceorientation == 'object'");
shouldBeTrue("hasOnDeviceOrientationProperty()");
shouldBeTrue("'ondeviceorientation' in window");
-shouldBeFalse("window.hasOwnProperty('ondeviceorientation')");
+shouldBeTrue("window.hasOwnProperty('ondeviceorientation')");
window.successfullyParsed = true;
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-PASS typeof window.DeviceOrientationEvent == 'function' is true
+PASS typeof window.DeviceOrientationEvent == 'object' is true
+PASS typeof window.DeviceOrientationEvent == 'function' is false
PASS hasDeviceOrientationEventProperty() is true
PASS 'DeviceOrientationEvent' in window is true
PASS window.hasOwnProperty('DeviceOrientationEvent') is true
PASS typeof window.ondeviceorientation == 'object' is true
PASS hasOnDeviceOrientationProperty() is true
PASS 'ondeviceorientation' in window is true
-PASS window.hasOwnProperty('ondeviceorientation') is false
+PASS window.hasOwnProperty('ondeviceorientation') is true
PASS successfullyParsed is true
TEST COMPLETE
--- /dev/null
+Tests that the window.DeviceOrientationEvent and window.ondeviceorientation properties are present.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+FAIL typeof window.DeviceOrientationEvent == 'object' should be true. Was false.
+FAIL typeof window.DeviceOrientationEvent == 'function' should be false. Was true.
+PASS hasDeviceOrientationEventProperty() is true
+PASS 'DeviceOrientationEvent' in window is true
+PASS window.hasOwnProperty('DeviceOrientationEvent') is true
+PASS typeof window.ondeviceorientation == 'object' is true
+PASS hasOnDeviceOrientationProperty() is true
+PASS 'ondeviceorientation' in window is true
+FAIL window.hasOwnProperty('ondeviceorientation') should be true. Was false.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+