tor-browser

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

insert-list-items-in-table-cell.html (1685B)


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