| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
| 5 <script src="resources/util.js"></script> | 5 <script src="resources/util.js"></script> |
| 6 </head> | 6 </head> |
| 7 <body> | 7 <body> |
| 8 <div id="container"> | 8 <div id="container"> |
| 9 <div id="destination" contentEditable></div> | 9 <div id="destination" contentEditable></div> |
| 10 </div> | 10 </div> |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 finishJSTest(); | 34 finishJSTest(); |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 initSpellTest("destination", "It should be upper case.", function(textNode) { | 37 initSpellTest("destination", "It should be upper case.", function(textNode) { |
| 38 | 38 |
| 39 spellingMarkerRange = internals.markerRangeForNode(textNode, "spelling", 0); | 39 spellingMarkerRange = internals.markerRangeForNode(textNode, "spelling", 0); |
| 40 shouldBeEqualToString("spellingMarkerRange.toString()", "upper case"); | 40 shouldBeEqualToString("spellingMarkerRange.toString()", "upper case"); |
| 41 | 41 |
| 42 for(var i = 0; i < 5; ++i) | 42 for(var i = 0; i < 5; ++i) |
| 43 eventSender.keyDown("leftArrow"); | 43 eventSender.keyDown("ArrowLeft"); |
| 44 | 44 |
| 45 document.execCommand("InsertText", false, "\n"); | 45 document.execCommand("InsertText", false, "\n"); |
| 46 | 46 |
| 47 var destinationChildNodes = | 47 var destinationChildNodes = |
| 48 document.getElementById("destination").childNodes; | 48 document.getElementById("destination").childNodes; |
| 49 | 49 |
| 50 var firstLine = destinationChildNodes[0]; | 50 var firstLine = destinationChildNodes[0]; |
| 51 var secondLine = destinationChildNodes[1].firstChild; | 51 var secondLine = destinationChildNodes[1].firstChild; |
| 52 | 52 |
| 53 waitForMarkersToDisappear(firstLine, secondLine, 10); | 53 waitForMarkersToDisappear(firstLine, secondLine, 10); |
| 54 | 54 |
| 55 }, true); | 55 }, true); |
| 56 </script> | 56 </script> |
| 57 </body> | 57 </body> |
| 58 </html> | 58 </html> |
| OLD | NEW |