| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script> | 3 <script> |
| 4 window.onload = function() { | 4 window.onload = function() { |
| 5 if (testRunner) { | 5 if (window.testRunner) { |
| 6 testRunner.dumpAsText(); | 6 testRunner.dumpAsText(); |
| 7 testRunner.waitUntilDone(); | 7 testRunner.waitUntilDone(); |
| 8 } | 8 } |
| 9 var oSelection=window.getSelection(); | 9 var oSelection=window.getSelection(); |
| 10 document.execCommand("SelectAll", false, false); | 10 document.execCommand("SelectAll", false, false); |
| 11 var oRange = oSelection.getRangeAt(0); | 11 var oRange = oSelection.getRangeAt(0); |
| 12 var oInsertedElement = document.getElementById("div"); | 12 var oInsertedElement = document.getElementById("div"); |
| 13 oRange.insertNode(oInsertedElement); | 13 oRange.insertNode(oInsertedElement); |
| 14 document.execCommand("SelectAll", false); | 14 document.execCommand("SelectAll", false); |
| 15 oSelection.modify('extend', 'backward', 'lineboundary'); | 15 oSelection.modify('extend', 'backward', 'lineboundary'); |
| 16 var oRange = oSelection.getRangeAt(0); | 16 var oRange = oSelection.getRangeAt(0); |
| 17 var oDocumentFragment = oRange.cloneContents(); | 17 var oDocumentFragment = oRange.cloneContents(); |
| 18 var oParent = document.getElementById("ruby"); | 18 var oParent = document.getElementById("ruby"); |
| 19 oParent.appendChild(oDocumentFragment); | 19 oParent.appendChild(oDocumentFragment); |
| 20 document.execCommand('SelectToMark',false,false); | 20 document.execCommand('SelectToMark',false,false); |
| 21 var oRange = oSelection.getRangeAt(0); | 21 var oRange = oSelection.getRangeAt(0); |
| 22 oRange.deleteContents(); | 22 oRange.deleteContents(); |
| 23 window.requestAnimationFrame(function(){ | 23 window.requestAnimationFrame(function(){ |
| 24 oParent.remove(); | 24 oParent.remove(); |
| 25 var oSuccessMessage = document.createElement("p"); | 25 var oSuccessMessage = document.createElement("p"); |
| 26 oSuccessMessage.innerHTML = "If this string appears, and the renderer
hasn't crashed, then the bug is fixed."; | 26 oSuccessMessage.innerHTML = "If this string appears, and the renderer
hasn't crashed, then the bug is fixed."; |
| 27 document.body.appendChild(oSuccessMessage); | 27 document.body.appendChild(oSuccessMessage); |
| 28 if (testRunner) | 28 if (window.testRunner) |
| 29 testRunner.notifyDone(); | 29 testRunner.notifyDone(); |
| 30 }); | 30 }); |
| 31 }; | 31 }; |
| 32 </script> | 32 </script> |
| 33 </head> | 33 </head> |
| 34 <body> | 34 <body> |
| 35 <ruby id="ruby"> | 35 <ruby id="ruby"> |
| 36 <rbc> | 36 <rbc> |
| 37 The quick brown fox jumped over the lazy dog. Now is the time for all g
ood men to come to the aid of their country. She sell seashells by the seashore
. | 37 The quick brown fox jumped over the lazy dog. Now is the time for all g
ood men to come to the aid of their country. She sell seashells by the seashore
. |
| 38 </rbc> | 38 </rbc> |
| 39 <rt> | 39 <rt> |
| 40 <button> | 40 <button> |
| 41 <div id="div" /> | 41 <div id="div" /> |
| 42 </button> | 42 </button> |
| 43 </rt> | 43 </rt> |
| 44 <rtc /> | 44 <rtc /> |
| 45 * | 45 * |
| 46 </ruby> | 46 </ruby> |
| 47 </body> | 47 </body> |
| 48 </html> | 48 </html> |
| OLD | NEW |