g.czajkowski@samsung.com | 92123c6 | 2014-01-17 09:18:58 +0000 | [diff] [blame] | 1 | Test if WebKit removes grammar markers when we edit a grammatically-incorrect word. To test manually, press backspace key to delete the last character of "has". This test succeeds when "ha" does not have grammar markers. |
hbono@chromium.org | b272133 | 2012-06-15 08:41:30 +0000 | [diff] [blame] | 2 | |
| 3 | On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
| 4 | |
| 5 | |
| 6 | document.execCommand("InsertText", false, "You has the right.") |
g.czajkowski@samsung.com | 92123c6 | 2014-01-17 09:18:58 +0000 | [diff] [blame] | 7 | PASS internals.hasGrammarMarker(4, 3) became true |
hbono@chromium.org | b272133 | 2012-06-15 08:41:30 +0000 | [diff] [blame] | 8 | Delete the end of this sentence until it becomes "You ha". |
rniwa@webkit.org | 8abd95a | 2012-08-04 02:40:10 +0000 | [diff] [blame] | 9 | testRunner.execCommand("DeleteBackward") |
| 10 | testRunner.execCommand("DeleteBackward") |
| 11 | testRunner.execCommand("DeleteBackward") |
| 12 | testRunner.execCommand("DeleteBackward") |
| 13 | testRunner.execCommand("DeleteBackward") |
| 14 | testRunner.execCommand("DeleteBackward") |
| 15 | testRunner.execCommand("DeleteBackward") |
| 16 | testRunner.execCommand("DeleteBackward") |
| 17 | testRunner.execCommand("DeleteBackward") |
| 18 | testRunner.execCommand("DeleteBackward") |
| 19 | testRunner.execCommand("DeleteBackward") |
| 20 | testRunner.execCommand("DeleteBackward") |
g.czajkowski@samsung.com | 92123c6 | 2014-01-17 09:18:58 +0000 | [diff] [blame] | 21 | PASS internals.hasGrammarMarker(4, 2) became false |
hbono@chromium.org | b272133 | 2012-06-15 08:41:30 +0000 | [diff] [blame] | 22 | PASS successfullyParsed is true |
| 23 | |
| 24 | TEST COMPLETE |
| 25 | You ha |
| 26 | |
| 27 | |