Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: LayoutTests/editing/spelling/copy-paste-crash.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../fast/js/resources/js-test-pre.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 <script src="resources/util.js"></script> 5 <script src="resources/util.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <div id="container"> 8 <div id="container">
9 <input id="destination" type="text" name="type" value=""> 9 <input id="destination" type="text" name="type" value="">
10 </div> 10 </div>
11 11
12 <script> 12 <script>
13 13
14 description("Spell check does not crash after Ctrl-X/Ctrl-V/type text in ASAN. " + 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 typin g again. " + 15 "To test manually, type 'A', Ctrl-A, Ctrl-X, Ctrl-V, and start typin g again. " +
16 "The test succeeds when there's no crash in the last step."); 16 "The test succeeds when there's no crash in the last step.");
17 17
18 initSpellTest("destination", "A", function(textNode) { 18 initSpellTest("destination", "A", function(textNode) {
19 var behaviors = ["win", "mac"]; 19 var behaviors = ["win", "mac"];
20 for (var i = 0; i < behaviors.length; i++) { 20 for (var i = 0; i < behaviors.length; i++) {
21 internals.settings.setEditingBehavior(behaviors[i]); 21 internals.settings.setEditingBehavior(behaviors[i]);
22 document.execCommand("SelectAll"); 22 document.execCommand("SelectAll");
23 document.execCommand("Cut"); 23 document.execCommand("Cut");
24 document.execCommand("Paste"); 24 document.execCommand("Paste");
25 document.execCommand("InsertText", false, "A"); 25 document.execCommand("InsertText", false, "A");
26 } 26 }
27 log("PASS Did not crash"); 27 log("PASS Did not crash");
28 }); 28 });
29 29
30 </script> 30 </script>
31 </body> 31 </body>
32 </html> 32 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698