| 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="../../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> |
| 11 <script> | 11 <script> |
| 12 | 12 |
| 13 description("Spelling should work when the user selects a multi-word misspelling
exactly. " + | 13 description("Spelling should work when the user selects a multi-word misspelling
exactly. " + |
| 14 "To test manually, enable 'Ask Google for Suggestions' in Chrome, ty
pe 'It should be upper case.', select 'upper case', and context-click on the sel
ection." + | 14 "To test manually, enable 'Ask Google for Suggestions' in Chrome, ty
pe 'It should be upper case.', select 'upper case', and context-click on the sel
ection." + |
| (...skipping 23 matching lines...) Expand all Loading... |
| 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 shouldBeEqualToString("window.getSelection().toString()", "upper case"); | 41 shouldBeEqualToString("window.getSelection().toString()", "upper case"); |
| 42 shouldBeEqualToString("contextMenuElements[contextMenuElements.length - 1]",
"uppercase"); | 42 shouldBeEqualToString("contextMenuElements[contextMenuElements.length - 1]",
"uppercase"); |
| 43 }); | 43 }); |
| 44 | 44 |
| 45 </script> | 45 </script> |
| 46 </body> | 46 </body> |
| 47 </html> | 47 </html> |
| OLD | NEW |