tor-browser

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

test_viewport_metrics_on_landscape_content.html (619B)


      1 <!doctype html>
      2 <meta charset=utf-8>
      3 <script src="/tests/SimpleTest/SimpleTest.js"></script>
      4 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
      5 <p id="display"></p>
      6 <div id="content" style="display: none"></div>
      7 <pre id="test"></pre>
      8 <script>
      9 'use strict';
     10 SimpleTest.waitForExplicitFinish();
     11 SpecialPowers.pushPrefEnv({
     12  "set": [
     13    ["dom.meta-viewport.enabled", true],
     14  ]
     15 }, () => {
     16  // We need to open a new window to avoid running tests in an iframe since
     17  // we want to test metrics on the root document.
     18  window.open("file_viewport_metrics_on_landscape_content.html");
     19 });
     20 </script>