Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1232)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/feature-policy/resources/feature-policy-fullscreen-disabled.html

Issue 2499373002: Implementation for feature policy - fullscreen (Closed)
Patch Set: Modified layout tests Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698