| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../fast/js/resources/js-test-pre.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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 // Esc key to hide the context menu. | 69 // Esc key to hide the context menu. |
| 70 eventSender.keyDown(String.fromCharCode(0x001B), null); | 70 eventSender.keyDown(String.fromCharCode(0x001B), null); |
| 71 | 71 |
| 72 spellingMarkerRange = internals.markerRangeForNode(textNode, "spelling", 0); | 72 spellingMarkerRange = internals.markerRangeForNode(textNode, "spelling", 0); |
| 73 shouldBeEqualToString("spellingMarkerRange.toString()", "wellcome"); | 73 shouldBeEqualToString("spellingMarkerRange.toString()", "wellcome"); |
| 74 shouldBeEqualToString("window.getSelection().toString()", "wellcome "); | 74 shouldBeEqualToString("window.getSelection().toString()", "wellcome "); |
| 75 shouldBeEqualToString("contextMenuElements[contextMenuElements.length - 1]",
"welcome"); | 75 shouldBeEqualToString("contextMenuElements[contextMenuElements.length - 1]",
"welcome"); |
| 76 }); | 76 }); |
| 77 | 77 |
| 78 </script> | 78 </script> |
| 79 <script src="../../fast/js/resources/js-test-post.js"></script> | |
| 80 </body> | 79 </body> |
| 81 </html> | 80 </html> |
| OLD | NEW |