| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <body> | 3 <body> |
| 4 <script src="../../../resources/testharness.js"></script> | 4 <script src="../../../resources/testharness.js"></script> |
| 5 <script src="../../../resources/testharnessreport.js"></script> | 5 <script src="../../../resources/testharnessreport.js"></script> |
| 6 <script> | 6 <script> |
| 7 | 7 |
| 8 var test = async_test("Test that screen.orientation.lock() throws when the input
isn't valid."); | 8 var test = async_test("Test that screen.orientation.lock() throws when the input
isn't valid."); |
| 9 | 9 |
| 10 function onOrientationChangeEvent(ev) { | 10 function onOrientationChangeEvent(ev) { |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 setTimeout(test.step_func(function() { | 64 setTimeout(test.step_func(function() { |
| 65 assert_equals(screen.orientation.type, 'portrait-primary'); | 65 assert_equals(screen.orientation.type, 'portrait-primary'); |
| 66 screen.orientation.unlock(); | 66 screen.orientation.unlock(); |
| 67 test.done(); | 67 test.done(); |
| 68 })); | 68 })); |
| 69 | 69 |
| 70 </script> | 70 </script> |
| 71 </body> | 71 </body> |
| 72 </html> | 72 </html> |
| 73 | 73 |
| OLD | NEW |