Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / xwalk / test / android / data / screen_orientation.html
1 <html>
2 <head>
3 <title></title>
4 </head>
5 <body>
6 <script>
7   try {
8     var result = true;
9     if (typeof screen.orientation.lock != "function") {
10       console.log("screen.orientation.lock is not a function");
11       result = false;
12     }
13     if (typeof window.screen.orientation.unlock != "function") {
14       console.log("screen.orientation.unlock is not a function");
15       result = false;
16     }
17
18     if (result) {
19       document.title = "Pass";
20     } else {
21       document.title = "Fail";
22     }
23   } catch(e) {
24       document.title = "Fail";
25   }
26 </script>
27 Screen Orientation API Test.
28 </body>
29 </html>