Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <title>Test that full screen requests are allowed when inside an orientation cha nge handler.</title> | |
| 4 <script src="../resources/testharness.js"></script> | |
| 5 <script src="../resources/testharnessreport.js"></script> | |
| 6 <span></span> | |
| 7 <script> | |
| 8 | |
| 9 var element = document.querySelector('span'); | |
| 10 | |
| 11 async_test(function(t) { | |
| 12 window.screen.orientation.onchange = function() { | |
|
foolip
2016/07/23 00:33:54
wrap in t.step_func
mlamouri (slow - plz ping)
2016/07/25 15:54:18
Done.
| |
| 13 element.webkitRequestFullScreen(); | |
| 14 }; | |
| 15 | |
| 16 document.onwebkitfullscreenerror = t.step_func(function(e) { | |
|
foolip
2016/07/23 00:33:54
Argument e is unused, assertunreached is missing a
mlamouri (slow - plz ping)
2016/07/25 15:54:18
Done.
| |
| 17 assertunreached("fullscreen is not accepted when orientation is changed"); | |
| 18 t.done(); | |
| 19 }); | |
| 20 | |
| 21 document.onwebkitfullscreenchange = t.step_func_done(); | |
| 22 window.testRunner.setMockScreenOrientation('landscape-primary'); | |
| 23 }); | |
| 24 | |
| 25 </script> | |
| 26 </body> | |
|
foolip
2016/07/23 00:33:54
There's no explicit <body>, but in any case you ca
mlamouri (slow - plz ping)
2016/07/25 15:54:18
Done.
Sorry for the messy test. I should have tak
| |
| 27 </html> | |
| OLD | NEW |