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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/fullscreen/api/element-request-fullscreen-twice-manual.html

Issue 2572333003: Import wpt@4970d7334aaf8977c5b617075aa48be1b6e482c7 (Closed)
Patch Set: Update TestExpectations 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 <title>Element#requestFullscreen() twice</title>
3 <script src="/resources/testharness.js"></script>
4 <script src="/resources/testharnessreport.js"></script>
5 <script src="../trusted-click.js"></script>
6 <div id="log"></div>
7 <script>
8 async_test(t => {
9 const div = document.querySelector("div");
10
11 document.onfullscreenchange = t.step_func(() => {
12 assert_equals(document.fullscreenElement, div);
13 // Done, but ensure that there's only one fullscreenchange event.
14 document.onfullscreenchange = t.unreached_func("second fullscreenchange even t");
15 setTimeout(t.step_func_done(), 0);
16 });
17 document.onfullscreenerror = t.unreached_func("fullscreenerror event");
18
19 trusted_click(t.step_func(() => {
20 // Request fullscreen twice.
21 div.requestFullscreen();
22 assert_equals(document.fullscreenElement, null, "fullscreenElement after fir st requestFullscreen()");
23 div.requestFullscreen();
24 assert_equals(document.fullscreenElement, null, "fullscreenElement after sec ond requestFullscreen()");
25 }), document.body);
26 });
27 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698