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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/feature-policy/resources/feature-policy-fullscreen-enabled.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 Enabled</title>
4 <script src="/resources/testharness.js"></script>
5 <script src="/resources/testharnessreport.js"></script>
6 </head>
7 <script>
8 test(function(test) {
9 document.onwebkitfullscreenchange = function ( event ) {
10 console.log('FULL SCREEN GRANTED');
11 test.done();
12 document.webkitExitFullscreen();
13 };
14 var div = document.createElement('div');
15 document.documentElement.appendChild(div);
16 assert_equals(document.fullscreenElement, null);
17 assert_true(document.fullscreenEnabled);
18 div.webkitRequestFullScreen();
19 assert_equals(document.fullscreenElement, div);
20 }, 'Any iframe may use fullscreen feature when enabled.');
21 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698