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