OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <script src="../../fast/js/resources/js-test-pre.js"></script> | |
5 <script src="resources/util.js"></script> | |
6 </head> | |
7 <body> | |
8 <div id="container"> | |
9 <input id="destination" type="text" name="type" value=""> | |
10 </div> | |
11 | |
12 <script> | |
13 | |
14 description("Spell check does not crash after Ctrl-X/focus-change/Ctrl-V/focus-c hange/type text. " + | |
15 "To test manually, type 'A', Ctrl-A, Ctrl-X, focus the second input, Ctr-V, focus the first input again, " + | |
16 "start typing again. The test succeeds when there's no crash in the last step."); | |
17 | |
18 initSpellTest("destination", "A", function(textNode) { | |
19 var behaviors = ["win", "mac"]; | |
20 for (var i = 0; i < behaviors.length; i++) { | |
21 internals.settings.setEditingBehavior(behaviors[i]); | |
22 document.execCommand("SelectAll"); | |
23 document.execCommand("Cut"); | |
24 document.execCommand("Paste"); | |
25 document.execCommand("InsertText", false, "A"); | |
26 } | |
abarth-chromium
2013/07/17 00:01:00
I'd add a "PASS: Did not crash" message once you'r
please use gerrit instead
2013/07/17 01:11:22
Done.
| |
27 }); | |
28 | |
29 </script> | |
30 <script src="../../fast/js/resources/js-test-post.js"></script> | |
31 </body> | |
32 </html> | |
OLD | NEW |