blob: f7fce8e43dd697e941d3c478311744fdcbeed081 [file] [log] [blame]
g.czajkowski@samsung.com92123c62014-01-17 09:18:58 +00001Test 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.orgb2721332012-06-15 08:41:30 +00002
3On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6document.execCommand("InsertText", false, "You has the right.")
g.czajkowski@samsung.com92123c62014-01-17 09:18:58 +00007PASS internals.hasGrammarMarker(4, 3) became true
hbono@chromium.orgb2721332012-06-15 08:41:30 +00008Delete the end of this sentence until it becomes "You ha".
rniwa@webkit.org8abd95a2012-08-04 02:40:10 +00009testRunner.execCommand("DeleteBackward")
10testRunner.execCommand("DeleteBackward")
11testRunner.execCommand("DeleteBackward")
12testRunner.execCommand("DeleteBackward")
13testRunner.execCommand("DeleteBackward")
14testRunner.execCommand("DeleteBackward")
15testRunner.execCommand("DeleteBackward")
16testRunner.execCommand("DeleteBackward")
17testRunner.execCommand("DeleteBackward")
18testRunner.execCommand("DeleteBackward")
19testRunner.execCommand("DeleteBackward")
20testRunner.execCommand("DeleteBackward")
g.czajkowski@samsung.com92123c62014-01-17 09:18:58 +000021PASS internals.hasGrammarMarker(4, 2) became false
hbono@chromium.orgb2721332012-06-15 08:41:30 +000022PASS successfullyParsed is true
23
24TEST COMPLETE
25You ha
26
27