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

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:18:30 Remove the unused test argument. (For async_test i
lunalu1 2016/12/01 20:10:07 Done.
9 document.onwebkitfullscreenerror = function ( event ) {
10 console.log('FULL SCREEN DENIED');
11 test.done();
12 document.webkitExitFullscreen();
13 };
14 var div = document.createElement('div');
15 document.documentElement.appendChild(div);
16 assert_false(document.fullscreenEnabled);
17 div.webkitRequestFullscreen();
18 }, 'No iframe may use fullscreen feature when disabled.');
19 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698