OLD | NEW |
1 <svg xmlns="http://www.w3.org/2000/svg"> | 1 <svg xmlns="http://www.w3.org/2000/svg"> |
2 <font> | 2 <font> |
3 <font-face id="f" font-family="SVGArial"/> | 3 <font-face id="f" font-family="SVGArial"/> |
4 <stop id="s"/> | 4 <stop id="s"/> |
5 <script> | 5 <script> |
6 | 6 |
7 if (!window.layoutTestController) | 7 if (!window.layoutTestController) |
8 alert("This test requires GCController") | 8 alert("This test requires GCController") |
9 else { | 9 else { |
10 var range = document.createRange(); | 10 var range = document.createRange(); |
11 range.selectNodeContents( document.getElementById('s') ); | 11 range.selectNodeContents( document.getElementById('s') ); |
12 GCController.collect(); | 12 GCController.collect(); |
13 range.surroundContents( document.getElementById('f') ); | 13 range.surroundContents( document.getElementById('f') ); |
14 GCController.collect(); | 14 GCController.collect(); |
15 | 15 |
16 layoutTestController.dumpAsText(); | 16 layoutTestController.dumpAsText(); |
17 alert("PASS. WebKit didn't crash."); | 17 alert("PASS. WebKit didn't crash."); |
18 } | 18 } |
19 | 19 |
20 </script> | 20 </script> |
OLD | NEW |