OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <head> | |
3 <title>Feature-Policy Fullscreen Disabled</title> | |
4 <script src="/resources/testharness.js"></script> | |
5 <script src="/resources/testharnessreport.js"></script> | |
6 </head> | |
7 <script> | |
8 test(function(test) { | |
foolip
2016/11/28 23:33:22
Should be async_test?
lunalu1
2016/12/01 20:10:07
Done.
| |
9 document.onwebkitfullscreenerror = function ( event ) { | |
foolip
2016/11/28 23:33:22
If async, test, wrap in test.step_func. You can al
lunalu1
2016/12/01 20:10:07
Done.
| |
10 console.log('FULL SCREEN DENIED'); | |
foolip
2016/11/28 23:33:22
Is this needed? If the result of the test matters,
lunalu1
2016/12/01 20:10:07
Done.
| |
11 test.done(); | |
12 document.webkitExitFullscreen(); | |
13 }; | |
14 var div = document.createElement('div'); | |
15 document.documentElement.appendChild(div); | |
foolip
2016/11/28 23:33:22
A div in the markup and document.querySelector('di
lunalu1
2016/12/01 20:10:07
Done.
| |
16 assert_false(document.fullscreenEnabled); | |
foolip
2016/11/28 23:33:22
Using the prefixed or unprefixed API consistently
lunalu1
2016/12/01 20:10:07
Done.
| |
17 div.webkitRequestFullscreen(); | |
foolip
2016/11/28 23:33:22
Without a user gesture the request will fail with
| |
18 }, 'No iframe may use fullscreen feature when disabled.'); | |
19 </script> | |
OLD | NEW |