tor-browser

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

justifycenter.html (1945B)


      1 <!doctype html>
      2 <meta charset=utf-8>
      3 <meta name="timeout" content="long">
      4 <meta name="variant" content="?1-1000">
      5 <meta name="variant" content="?1001-2000">
      6 <meta name="variant" content="?2001-3000">
      7 <meta name="variant" content="?3001-4000">
      8 <meta name="variant" content="?4001-5000">
      9 <meta name="variant" content="?5001-6000">
     10 <meta name="variant" content="?6001-last">
     11 <link rel=stylesheet href=../include/reset.css>
     12 <title>justifycenter - HTML editing conformance tests</title>
     13 
     14 <div id=log></div>
     15 
     16 <div id=test-container></div>
     17 
     18 <script src=../include/implementation.js></script>
     19 <script>var testsJsLibraryOnly = true</script>
     20 <script src=../include/tests.js></script>
     21 <script src=../data/justifycenter.js></script>
     22 <script src=/resources/testharness.js></script>
     23 <script src=/resources/testharnessreport.js></script>
     24 <script src="/common/subset-tests.js"></script>
     25 <script>
     26 "use strict";
     27 
     28 (function() {
     29    // Make document.body.innerHTML more tidy by removing unnecessary things.
     30    [].forEach.call(document.querySelectorAll("script"), function(node) {
     31        node.parentNode.removeChild(node);
     32    });
     33 
     34    if (true) {
     35        // Silly hack: the CSS styling flag should be true, not false, to match
     36        // expected results.  This is because every group of tests except the
     37        // last (multitest) sets styleWithCSS automatically, and it sets it
     38        // first to false and then to true.  Thus it's left at true at the end
     39        // of each group of tests, so in gentest.html it will be true when
     40        // starting each group of tests other than the first.  But browsers are
     41        // supposed to default it to false when the page loads, so flip it.
     42        try { document.execCommand("styleWithCSS", false, "true") } catch(e) {}
     43    }
     44 
     45    browserTests.forEach(runConformanceTest);
     46 
     47    document.getElementById("test-container").parentNode
     48        .removeChild(document.getElementById("test-container"));
     49 })();
     50 </script>