OLD | NEW |
1 PASS | 1 PASS |
2 <title>Test that we don't crash when we clone inside DOMContentLoaded</title> | 2 <title>Test that we don't crash when we clone inside DOMContentLoaded</title> |
3 <body> | 3 <body> |
4 <style> | 4 <style> |
5 * { cursor: -webkit-image-set(url("https://does-not-exist") 251x); | 5 * { cursor: -webkit-image-set(url("https://does-not-exist") 251x), pointer; } |
6 </style> | 6 </style> |
7 <script> | 7 <script> |
8 if (window.testRunner) { | 8 if (window.testRunner) { |
9 testRunner.dumpAsText(); | 9 testRunner.dumpAsText(); |
10 testRunner.waitUntilDone(); | 10 testRunner.waitUntilDone(); |
11 } | 11 } |
12 | 12 |
13 function appendAndClone() { | 13 function appendAndClone() { |
14 document.body.appendChild(document.createElementNS("http://www.w3.org/1998/M
ath/MathML", "mstack")); | 14 document.body.appendChild(document.createElementNS("http://www.w3.org/1998/M
ath/MathML", "mstack")); |
15 document.body.cloneNode(true); | 15 document.body.cloneNode(true); |
16 if (window.testRunner) | 16 if (window.testRunner) |
17 testRunner.notifyDone(); | 17 testRunner.notifyDone(); |
18 } | 18 } |
19 document.addEventListener("DOMContentLoaded", appendAndClone, false); | 19 document.addEventListener("DOMContentLoaded", appendAndClone, false); |
20 </script> | 20 </script> |
OLD | NEW |