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