| <p>This test checks that spelling suggestions in the context menu are not show when spellcheck="false". |
| To test manually, right click on the text in the input box.</p> |
| <input id="input" spellcheck="false" /> |
| <div id="result">FAIL: Did not run test</div> |
| var input = document.getElementById("input"); |
| document.execCommand("InsertText", false, 'wellcome'); |
| document.execCommand("InsertText", false, ' '); |
| var x = input.offsetParent.offsetLeft + input.offsetLeft + 4; |
| var y = input.offsetParent.offsetTop + input.offsetTop + input.offsetHeight / 2; |
| eventSender.mouseMoveTo(x, y); |
| var itemNamesWithoutSpellChecking = eventSender.contextClick(); |
| input.setAttribute("spellcheck", "true"); |
| eventSender.mouseMoveTo(x, y); |
| var itemNamesWithSpellChecking = eventSender.contextClick(); |
| if (itemNamesWithSpellChecking.length > itemNamesWithoutSpellChecking.length) |
| document.getElementById('result').innerHTML = 'SUCCESS'; |
| document.getElementById('result').innerHTML = 'FAILURE: No spell checking suggestions'; |