OLD | NEW |
1 <script> | 1 <script> |
2 | 2 |
3 if (window.layoutTestController) | 3 if (window.layoutTestController) |
4 layoutTestController.dumpAsText(); | 4 layoutTestController.dumpAsText(); |
5 | 5 |
6 function runTest() { | 6 function runTest() { |
7 window.getSelection().setBaseAndExtent(start, 0, null, 0); | 7 window.getSelection().setBaseAndExtent(start, 0, null, 0); |
8 document.execCommand("Indent"); | 8 document.execCommand("Indent"); |
9 document.body.innerHTML = "PASS. WebKit didn't crash."; | 9 document.body.innerHTML = "PASS. WebKit didn't crash."; |
10 } | 10 } |
11 </script> | 11 </script> |
12 <body onload="runTest();"> | 12 <body onload="runTest();"> |
13 <defs contenteditable="true" id="start"> | 13 <defs contenteditable="true" id="start"> |
14 <rt id="rt">A | 14 <rt id="rt">A |
15 | 15 |
16 <script> | 16 <script> |
17 document.write("text"); | 17 document.write("text"); |
18 try { | 18 try { |
19 elem = document.getElementById("rt"); | 19 elem = document.getElementById("rt"); |
20 var new_elem = document.createElement("ruby"); | 20 var new_elem = document.createElement("ruby"); |
21 new_elem.innerHTML = elem.innerHTML; | 21 new_elem.innerHTML = elem.innerHTML; |
22 elem.parentNode.insertBefore(new_elem, elem); | 22 elem.parentNode.insertBefore(new_elem, elem); |
23 } catch (e) {} | 23 } catch (e) {} |
24 </script> | 24 </script> |
OLD | NEW |