unlink.html (1681B)
1 <!doctype html> 2 <meta charset=utf-8> 3 <meta name="timeout" content="long"> 4 <link rel=stylesheet href=../include/reset.css> 5 <title>unlink - HTML editing conformance tests</title> 6 <style> 7 .bold { 8 font-weight: bold; 9 } 10 </style> 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/unlink.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>