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