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