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