Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fullscreen / full-screen-request-rejected.html
blob9c2b45a374800d89863f548fb8beba43a608dabf
1 <body>
2 <script src="full-screen-test.js"></script>
3 <div>This tests that a full-screen request which is not user-initiated will be rejected.
4 <script>
5 waitForEvent(document, 'webkitfullscreenchange', function() {
6 logResult("Entered full screen.", false);
7 endTest();
8 });
9 if (testRunner)
10 testRunner.setPopupBlockingEnabled(true);
11 waitForEventAndEnd(document, 'webkitfullscreenerror');
12 document.documentElement.webkitRequestFullScreen();
13 </script>