tor-browser

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

1114526-1.html (1339B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3 <head>
      4 <script>
      5 var startPaintCount = 0;
      6 function doTest() {
      7  startPaintCount = window.windowUtils.paintCount;
      8  document.querySelector('#src').style.visibility='visible';
      9  document.querySelector('#dest').style.visibility='visible';
     10  setTimeout(check, 200);
     11 }
     12 var calls = 0;
     13 function check() {
     14  calls++;
     15  if ((window.windowUtils.paintCount - startPaintCount) > 3) {
     16    finishSuccess();
     17    return;
     18  }
     19  if (calls > 10) {
     20    finishFail();
     21    return;
     22  }
     23  setTimeout(check, 200);
     24 }
     25 function finishSuccess() {
     26  cleanup();
     27  document.documentElement.className = "";
     28 }
     29 function finishFail() {
     30  cleanup();
     31  document.body.appendChild(document.createTextNode("FAIL FAIL FAIL"));
     32  document.documentElement.className = "";
     33 }
     34 function cleanup() {
     35  var src = document.getElementById("src");
     36  var dest = document.getElementById("dest");
     37  src.remove();
     38  dest.remove();
     39 }
     40 </script>
     41 <style>
     42 div {
     43  width: 100px;
     44  height: 100px;
     45  position: absolute;
     46 }
     47 
     48 #src {
     49  background-image: url('1114526-1.gif');
     50  top: -500px;
     51  visibility: hidden;
     52 }
     53 
     54 #dest {
     55  background-image: -moz-element(#src);
     56  top: 100px;
     57  visibility: hidden;
     58 }
     59 </style>
     60 </head>
     61 <body>
     62  <div id="src"></div>
     63  <div id="dest"></div>
     64 <script>
     65 window.addEventListener("MozReftestInvalidate", doTest);
     66 </script>
     67 </body>
     68 </html>