tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

file_fullscreen-with-full-zoom.html (1005B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4  <meta charset="UTF-8">
      5  <title>Test for Bug 1223561</title>
      6  <script src="/tests/SimpleTest/EventUtils.js"></script>
      7  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      8  <script src="/tests/SimpleTest/WindowSnapshot.js"></script>
      9  <script type="text/javascript" src="file_fullscreen-utils.js"></script>
     10 </head>
     11 <body>
     12 <div id="target" style="width: 100px; height: 100px; background-color: green;"></div>
     13 <script>
     14 "use strict";
     15 
     16 function begin() {
     17  info("Setting full zoom to 30%");
     18  SpecialPowers.setFullZoom(window, 0.3);
     19 
     20  addFullscreenChangeContinuation("enter", enteredFullscreen);
     21  document.getElementById("target").requestFullscreen();
     22 }
     23 
     24 function enteredFullscreen() {
     25  info("The element with green background should be in fullscreen");
     26  assertWindowPureColor(window, "green");
     27  addFullscreenChangeContinuation("exit", exitedFullscreen);
     28  document.exitFullscreen();
     29 }
     30 
     31 function exitedFullscreen() {
     32  opener.nextTest();
     33 }
     34 </script>
     35 </body>
     36 </html>