tor-browser

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

test_bug512367.html (1068B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=512367
      5 -->
      6 <head>
      7  <title>Test for Bug 512367</title>
      8  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      9  <script src="/tests/SimpleTest/EventUtils.js"></script>
     10  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     11 </head>
     12 <body>
     13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=512367">Mozilla Bug 512367</a>
     14 <p id="display">
     15  <iframe src="bug369370-popup.png" id="i" style="width:200px; height:200px"></iframe>
     16 </p>
     17 <div id="content" style="display: none">
     18  
     19 </div>
     20 <pre id="test">
     21 <script type="application/javascript">
     22 
     23 var frame = document.getElementById("i");
     24 
     25 SimpleTest.waitForExplicitFinish();
     26 addLoadEvent(function() {
     27  SpecialPowers.setFullZoom(frame.contentWindow, 1.5);
     28 
     29  setTimeout(function() {
     30    synthesizeMouse(frame, 30, 30, {});
     31 
     32    is(SpecialPowers.getFullZoom(frame.contentWindow), 1.5, "Zoom in the image frame should not have been reset");
     33 
     34    SimpleTest.finish();
     35  }, 0);
     36 });
     37 </script>
     38 </pre>
     39 </body>
     40 </html>