| Test if WebKit does not spellcheck text when pasting text to an element having spellchecking disabled. To test manually, copy the text "zz apple" and paste it to the textarea. When "zz" is not marked as misspelled, this test succeeds. |
| |
| On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
| |
| |
| document.execCommand("InsertText", false, "z") |
| document.execCommand("InsertText", false, "z") |
| document.execCommand("InsertText", false, " ") |
| document.execCommand("InsertText", false, "a") |
| document.execCommand("InsertText", false, "p") |
| document.execCommand("InsertText", false, "p") |
| document.execCommand("InsertText", false, "l") |
| document.execCommand("InsertText", false, "e") |
| PASS internals.hasSpellingMarker(0, 2) became true |
| document.execCommand("Copy") |
| document.execCommand("Paste") |
| PASS internals.hasSpellingMarker(0, 2) became different from true |
| PASS successfullyParsed is true |
| |
| TEST COMPLETE |
| zz apple |
| zz apple |