[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc
steveblock at google.com
steveblock at google.com
Wed Dec 22 11:29:51 UTC 2010
The following commit has been merged in the debian/experimental branch:
commit a3c40ce3b1e823c285197cca43ada118f83e8eed
Author: steveblock at google.com <steveblock at google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Tue Jul 27 13:55:51 2010 +0000
2010-07-27 Steve Block <steveblock at 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.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64125 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index 9946bd4..23ee90c 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,21 @@
+2010-07-27 Steve Block <steveblock at 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 at chromium.org>
Reviewed by Darin Adler.
diff --git a/LayoutTests/fast/dom/DeviceOrientation/script-tests/window-property.js b/LayoutTests/fast/dom/DeviceOrientation/script-tests/window-property.js
index e7458b4..8e65059 100644
--- a/LayoutTests/fast/dom/DeviceOrientation/script-tests/window-property.js
+++ b/LayoutTests/fast/dom/DeviceOrientation/script-tests/window-property.js
@@ -9,7 +9,8 @@ function hasDeviceOrientationEventProperty()
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')");
@@ -26,6 +27,6 @@ function hasOnDeviceOrientationProperty()
shouldBeTrue("typeof window.ondeviceorientation == 'object'");
shouldBeTrue("hasOnDeviceOrientationProperty()");
shouldBeTrue("'ondeviceorientation' in window");
-shouldBeFalse("window.hasOwnProperty('ondeviceorientation')");
+shouldBeTrue("window.hasOwnProperty('ondeviceorientation')");
window.successfullyParsed = true;
diff --git a/LayoutTests/fast/dom/DeviceOrientation/window-property-expected.txt b/LayoutTests/fast/dom/DeviceOrientation/window-property-expected.txt
index 95075a0..308ab7a 100644
--- a/LayoutTests/fast/dom/DeviceOrientation/window-property-expected.txt
+++ b/LayoutTests/fast/dom/DeviceOrientation/window-property-expected.txt
@@ -3,14 +3,15 @@ Tests that the window.DeviceOrientationEvent and window.ondeviceorientation prop
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
diff --git a/LayoutTests/platform/android-v8/fast/dom/DeviceOrientation/window-property-expected.txt b/LayoutTests/platform/android-v8/fast/dom/DeviceOrientation/window-property-expected.txt
new file mode 100644
index 0000000..900c9ca
--- /dev/null
+++ b/LayoutTests/platform/android-v8/fast/dom/DeviceOrientation/window-property-expected.txt
@@ -0,0 +1,18 @@
+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
+
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list