2 <p>This test checks that spelling suggestions in the context menu are not show when
spellcheck=
"false".
3 To test manually, right click on the text in the input box.
</p>
4 <input id=
"input" spellcheck=
"false" />
5 <div id=
"result">FAIL: Did not run test
</div>
10 if (window
.testRunner
)
11 testRunner
.dumpAsText();
13 var input
= document
.getElementById("input");
15 document
.execCommand("InsertText", false, 'wellcome');
16 document
.execCommand("InsertText", false, ' ');
18 var x
= input
.offsetParent
.offsetLeft
+ input
.offsetLeft
+ 4;
19 var y
= input
.offsetParent
.offsetTop
+ input
.offsetTop
+ input
.offsetHeight
/ 2;
21 if (!window
.eventSender
)
24 eventSender
.mouseMoveTo(x
, y
);
25 var itemNamesWithoutSpellChecking
= eventSender
.contextClick();
27 input
.setAttribute("spellcheck", "true");
28 eventSender
.mouseMoveTo(x
, y
);
30 var itemNamesWithSpellChecking
= eventSender
.contextClick();
32 if (itemNamesWithSpellChecking
.length
> itemNamesWithoutSpellChecking
.length
)
33 document
.getElementById('result').innerHTML
= 'SUCCESS';
35 document
.getElementById('result').innerHTML
= 'FAILURE: No spell checking suggestions';