Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / xwalk / test / android / data / screen_orientation.html
index df6bc13..4e4087a 100644 (file)
@@ -6,12 +6,12 @@
 <script>
   try {
     var result = true;
-    if (typeof window.screen.lockOrientation != "function") {
-      console.log("window.screen.lockOrientation is not a function");
+    if (typeof screen.orientation.lock != "function") {
+      console.log("screen.orientation.lock is not a function");
       result = false;
     }
-    if (typeof window.screen.unlockOrientation != "function") {
-      console.log("window.screen.unlockOrientation is not a function");
+    if (typeof window.screen.orientation.unlock != "function") {
+      console.log("screen.orientation.unlock is not a function");
       result = false;
     }