2010-08-09 Steve Block <steveblock@google.com>
authorsteveblock@google.com <steveblock@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Aug 2010 11:20:02 +0000 (11:20 +0000)
committersteveblock@google.com <steveblock@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Aug 2010 11:20:02 +0000 (11:20 +0000)
        Reviewed by Jeremy Orlow.

        Accelerometer tests need V8 results
        https://bugs.webkit.org/show_bug.cgi?id=43443

        This patch adds V8-specific results for Android for the existing window-property.html test.

        * fast/dom/DeviceMotion/script-tests/window-property.js:
        * fast/dom/DeviceMotion/window-property-expected.txt:
        * platform/android-v8/fast/dom/DeviceMotion: Added.
        * platform/android-v8/fast/dom/DeviceMotion/window-property-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@65066 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/fast/dom/DeviceMotion/script-tests/window-property.js
LayoutTests/fast/dom/DeviceMotion/window-property-expected.txt
LayoutTests/platform/android-v8/fast/dom/DeviceMotion/window-property-expected.txt [new file with mode: 0644]

index bcbc6b5ca5e0da456adeb52a4d0ba9844341e8db..9524c12d72fd8a0d247c1b6e7fb06badf4960cd5 100644 (file)
@@ -1,3 +1,17 @@
+2010-08-09  Steve Block  <steveblock@google.com>
+
+        Reviewed by Jeremy Orlow.
+
+        Accelerometer tests need V8 results
+        https://bugs.webkit.org/show_bug.cgi?id=43443
+
+        This patch adds V8-specific results for Android for the existing window-property.html test.
+
+        * fast/dom/DeviceMotion/script-tests/window-property.js:
+        * fast/dom/DeviceMotion/window-property-expected.txt:
+        * platform/android-v8/fast/dom/DeviceMotion: Added.
+        * platform/android-v8/fast/dom/DeviceMotion/window-property-expected.txt: Added.
+
 2010-08-10  Sheriff Bot  <webkit.review.bot@gmail.com>
 
         Unreviewed, rolling out r65056.
index c91848af1499e5b4f4f899a90cf3395a6972cc69..3d22ba855e4dcd982c80c436fcdbe180bc53a586 100644 (file)
@@ -10,6 +10,7 @@ function hasDeviceMotionEventProperty()
 }
 
 shouldBeTrue("typeof window.DeviceMotionEvent == 'object'");
+shouldBeFalse("typeof window.DeviceMotionEvent == 'function'");
 shouldBeTrue("hasDeviceMotionEventProperty()");
 shouldBeTrue("'DeviceMotionEvent' in window");
 shouldBeTrue("window.hasOwnProperty('DeviceMotionEvent')");
index 15526510fe6eb24f374165a0813f22a5157de354..391677a02cc4b65a1153f47e0267405f439089b4 100644 (file)
@@ -4,6 +4,7 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
 
 
 PASS typeof window.DeviceMotionEvent == 'object' is true
+PASS typeof window.DeviceMotionEvent == 'function' is false
 PASS hasDeviceMotionEventProperty() is true
 PASS 'DeviceMotionEvent' in window is true
 PASS window.hasOwnProperty('DeviceMotionEvent') is true
diff --git a/LayoutTests/platform/android-v8/fast/dom/DeviceMotion/window-property-expected.txt b/LayoutTests/platform/android-v8/fast/dom/DeviceMotion/window-property-expected.txt
new file mode 100644 (file)
index 0000000..1bfbc1f
--- /dev/null
@@ -0,0 +1,18 @@
+Tests that the window.DeviceMotionEvent and window.ondevicemotion properties are present.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+FAIL typeof window.DeviceMotionEvent == 'object' should be true. Was false.
+FAIL typeof window.DeviceMotionEvent == 'function' should be false. Was true.
+PASS hasDeviceMotionEventProperty() is true
+PASS 'DeviceMotionEvent' in window is true
+PASS window.hasOwnProperty('DeviceMotionEvent') is true
+PASS typeof window.ondevicemotion == 'object' is true
+PASS hasOnDeviceMotionProperty() is true
+PASS 'ondevicemotion' in window is true
+FAIL window.hasOwnProperty('ondevicemotion') should be true. Was false.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+