1 Spelling should work when the user selects a multi-word misspelling exactly. To test manually, enable 'Ask Google for Suggestions' in Chrome, type 'It should be upper case.', select 'upper case', and context-click on the selection.The test succeeds when the context menu shows spelling suggestions.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS spellingMarkerRange.toString() is "upper case"
7 PASS window.getSelection().toString() is ""
8 PASS window.getSelection().toString() is "upper case"
9 PASS spellingMarkerRange.toString() is "upper case"
10 PASS window.getSelection().toString() is "upper case"
11 PASS contextMenuElements[contextMenuElements.length - 1] is "uppercase"
12 PASS successfullyParsed is true
15 It should be upper case.