OLD | NEW |
1 Test if WebKit removes grammar markers when we edit a grammatically-incorrect wo
rd. To test manually, type a grammatically-incorrect sentence "You has the right
." and type a backspace key to delete the last character of "has". This test suc
ceeds when "ha" does not have grammar markers. | 1 Test if WebKit removes grammar markers when we edit a grammatically-incorrect wo
rd. To test manually, type a grammatically-incorrect sentence "You has the right
." and type a backspace key to delete the last character of "has". This test suc
ceeds when "ha" does not have grammar markers. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 document.execCommand("InsertText", false, "You has the right.") | 6 PASS internals.hasGrammarMarker(document, 4, 3) became true |
7 PASS internals.hasGrammarMarker(document, 4, 3) is true | 7 PASS internals.hasGrammarMarker(document, 4, 2) became false |
8 Delete the end of this sentence until it becomes "You ha". | |
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") | |
21 PASS internals.hasGrammarMarker(document, 4, 2) is false | |
22 PASS successfullyParsed is true | 8 PASS successfullyParsed is true |
23 | 9 |
24 TEST COMPLETE | 10 TEST COMPLETE |
25 You ha | 11 You ha |
26 | 12 |
27 | 13 |
OLD | NEW |