Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / spelling / copy-paste-crash.html
blob23f7b869982b43edf1baa21fe3d6455cf8d79fab
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.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>
12 <script>
14 description("Spell check does not crash after Ctrl-X/Ctrl-V/type text in ASAN. " +
15 "To test manually, type 'A', Ctrl-A, Ctrl-X, Ctrl-V, and start typing again. " +
16 "The test succeeds when there's no crash in the last step.");
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");
27 log("PASS Did not crash");
28 });
30 </script>
31 </body>
32 </html>