tor-browser

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

index.html (4956B)


      1 <script>
      2  /* This Source Code Form is subject to the terms of the Mozilla Public
      3   * License, v. 2.0. If a copy of the MPL was not distributed with this
      4   * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      5 
      6  /* global Quitter */
      7 
      8  var list = [
      9    "blueprint/elements.html",
     10    "blueprint/forms.html",
     11    "blueprint/grid.html",
     12    "blueprint/sample.html",
     13    "js-input/3d-thingy.html",
     14    "js-input/crypto-otp.html",
     15    "js-input/sunspider/3d-cube.html",
     16    "js-input/sunspider/3d-morph.html",
     17    "js-input/sunspider/3d-raytrace.html",
     18    "js-input/sunspider/access-binary-trees.html",
     19    "js-input/sunspider/access-fannkuch.html",
     20    "js-input/sunspider/access-nbody.html",
     21    "js-input/sunspider/access-nsieve.html",
     22    "js-input/sunspider/bitops-3bit-bits-in-byte.html",
     23    "js-input/sunspider/bitops-bits-in-byte.html",
     24    "js-input/sunspider/bitops-bitwise-and.html",
     25    "js-input/sunspider/bitops-nsieve-bits.html",
     26    "js-input/sunspider/controlflow-recursive.html",
     27    "js-input/sunspider/crypto-aes.html",
     28    "js-input/sunspider/crypto-md5.html",
     29    "js-input/sunspider/crypto-sha1.html",
     30    "js-input/sunspider/date-format-tofte.html",
     31    "js-input/sunspider/date-format-xparb.html",
     32    "js-input/sunspider/math-cordic.html",
     33    "js-input/sunspider/math-partial-sums.html",
     34    "js-input/sunspider/math-spectral-norm.html",
     35    "js-input/sunspider/regexp-dna.html",
     36    "js-input/sunspider/string-base64.html",
     37    "js-input/sunspider/string-fasta.html",
     38    "js-input/sunspider/string-tagcloud.html",
     39    "js-input/sunspider/string-unpack-code.html",
     40    "js-input/sunspider/string-validate-input.html",
     41    "talos/tests/perf-reftest-singletons/abspos-reflow-1.html",
     42    "talos/tests/perf-reftest-singletons/attr-selector-1.html",
     43    "talos/tests/perf-reftest-singletons/bidi-resolution-1.html",
     44    "talos/tests/perf-reftest-singletons/bloom-basic-2.html",
     45    "talos/tests/perf-reftest-singletons/bloom-basic.html",
     46    "talos/tests/perf-reftest-singletons/coalesce-1.html",
     47    "talos/tests/perf-reftest-singletons/coalesce-2.html",
     48    "talos/tests/perf-reftest-singletons/display-none-1.html",
     49    "talos/tests/perf-reftest-singletons/external-string-pass.html",
     50    "talos/tests/perf-reftest-singletons/getElementById-1.html",
     51    "talos/tests/perf-reftest-singletons/id-getter-1.html",
     52    "talos/tests/perf-reftest-singletons/id-getter-2.html",
     53    "talos/tests/perf-reftest-singletons/id-getter-3.html",
     54    "talos/tests/perf-reftest-singletons/id-getter-4.html",
     55    "talos/tests/perf-reftest-singletons/id-getter-5.html",
     56    "talos/tests/perf-reftest-singletons/id-getter-6.html",
     57    "talos/tests/perf-reftest-singletons/id-getter-7.html",
     58    "talos/tests/perf-reftest-singletons/inline-style-cache-1.html",
     59    "talos/tests/perf-reftest-singletons/line-iterator.html",
     60    "talos/tests/perf-reftest-singletons/link-style-cache-1.html",
     61    "talos/tests/perf-reftest-singletons/nth-index-1.html",
     62    "talos/tests/perf-reftest-singletons/nth-index-2.html",
     63    "talos/tests/perf-reftest-singletons/only-children-1.html",
     64    "talos/tests/perf-reftest-singletons/parent-basic-singleton.html",
     65    "talos/tests/perf-reftest-singletons/resize-lengthy-textarea.html",
     66    "talos/tests/perf-reftest-singletons/scrollbar-styles-1.html",
     67    "talos/tests/perf-reftest-singletons/slow-selector-1.html",
     68    "talos/tests/perf-reftest-singletons/slow-selector-2.html",
     69    "talos/tests/perf-reftest-singletons/style-attr-1.html",
     70    "talos/tests/perf-reftest-singletons/style-sharing-style-attr.html",
     71    "talos/tests/perf-reftest-singletons/style-sharing.html",
     72    "talos/tests/perf-reftest-singletons/svg-text-textLength-1.html",
     73    "talos/tests/perf-reftest-singletons/svg-text-getExtentOfChar-1.html",
     74    "talos/tests/perf-reftest-singletons/tiny-traversal-singleton.html",
     75    "talos/tests/perf-reftest-singletons/window-named-property-get.html",
     76    "webkit/PerformanceTests/Speedometer/index.html",
     77    "http://localhost:8000/index.html?startAutomatically=true",
     78    "webkit/PerformanceTests/webaudio/index.html?raptor&rendering-buffer-length=30",
     79  ];
     80  var defaultInterval = 2000;
     81  var idx = 0;
     82  var w;
     83 
     84  window.onload = function () {
     85    w = window.open("about:blank");
     86    window.setTimeout(loadURL, defaultInterval);
     87  };
     88  function loadURL() {
     89    var interval = defaultInterval;
     90    var testURL = list[idx++];
     91    if (testURL.includes("webkit") || testURL.includes("localhost")) {
     92      interval = 120000;
     93    }
     94    w.close();
     95    w = window.open(testURL);
     96    // Prevent the perf-reftest-singletons from calling alert()
     97    w.tpRecordTime = function () {};
     98 
     99    if (idx < list.length) {
    100      window.setTimeout(loadURL, interval);
    101    } else {
    102      window.setTimeout(Quitter.quit, interval);
    103    }
    104  }
    105  var i;
    106 
    107  for (i = 0; i < list.length; i++) {
    108    // eslint-disable-next-line no-unsanitized/method
    109    document.write(list[i]);
    110    document.write("<br>");
    111  }
    112 </script>