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

Side by Side Diff: LayoutTests/editing/spelling/script-tests/spellcheck-paste.js

Issue 23444027: TEST COMPLETE does not appear at the end of spellchecking tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Created 7 years, 3 months 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
OLDNEW
1 1
2 description('For Bug 40092: Spell checking for pasted text.'); 2 description('For Bug 40092: Spell checking for pasted text.');
3 3
4 testRunner.waitUntilDone(); 4 jsTestIsAsync = true;
5 5
6 var testRoot = document.createElement("div"); 6 var testRoot = document.createElement("div");
7 document.body.insertBefore(testRoot, document.body.firstChild); 7 document.body.insertBefore(testRoot, document.body.firstChild);
8 8
9 var testTextArea = document.createElement("textarea"); 9 var testTextArea = document.createElement("textarea");
10 testRoot.appendChild(testTextArea); 10 testRoot.appendChild(testTextArea);
11 11
12 var testInput = document.createElement("input"); 12 var testInput = document.createElement("input");
13 testInput.setAttribute("type", "text"); 13 testInput.setAttribute("type", "text");
14 testRoot.appendChild(testInput); 14 testRoot.appendChild(testInput);
(...skipping 17 matching lines...) Expand all
32 var sel = window.getSelection(); 32 var sel = window.getSelection();
33 33
34 var tests = []; 34 var tests = [];
35 35
36 function done() 36 function done()
37 { 37 {
38 var next = tests.shift(); 38 var next = tests.shift();
39 if (next) 39 if (next)
40 return window.setTimeout(next, 0); 40 return window.setTimeout(next, 0);
41 testRoot.style.display = "none"; 41 testRoot.style.display = "none";
42 testRunner.notifyDone(); 42 finishJSTest();
43 } 43 }
44 44
45 function verifyMarker(node, expectedMarked) 45 function verifyMarker(node, expectedMarked)
46 { 46 {
47 if (node instanceof HTMLInputElement || node instanceof HTMLTextAreaElement) { 47 if (node instanceof HTMLInputElement || node instanceof HTMLTextAreaElement) {
48 node.focus(); 48 node.focus();
49 } else { 49 } else {
50 sel.selectAllChildren(node); 50 sel.selectAllChildren(node);
51 } 51 }
52 52
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 tests.push(function() { pasteAndVerify(testSourcePlain, testTextArea, [[0, 2]]); }); 102 tests.push(function() { pasteAndVerify(testSourcePlain, testTextArea, [[0, 2]]); });
103 tests.push(function() { pasteAndVerify(testSourceDecorated, testTextArea, [[0, 2 ]]); }); 103 tests.push(function() { pasteAndVerify(testSourceDecorated, testTextArea, [[0, 2 ]]); });
104 tests.push(function() { pasteAndVerify(testSourceMulti, testTextArea, [[0, 2], [ 3, 2]]); }); 104 tests.push(function() { pasteAndVerify(testSourceMulti, testTextArea, [[0, 2], [ 3, 2]]); });
105 105
106 tests.push(function() { pasteAndVerify(testSourcePlain, testEditable, [[0, 2]]); }); 106 tests.push(function() { pasteAndVerify(testSourcePlain, testEditable, [[0, 2]]); });
107 tests.push(function() { pasteAndVerify(testSourceDecorated, testEditable, [[0, 1 ]]); }); // To check "fo" part of foo. 107 tests.push(function() { pasteAndVerify(testSourceDecorated, testEditable, [[0, 1 ]]); }); // To check "fo" part of foo.
108 tests.push(function() { pasteAndVerify(testSourceMulti, testEditable, [[0, 2], [ 3, 2]]); }); 108 tests.push(function() { pasteAndVerify(testSourceMulti, testEditable, [[0, 2], [ 3, 2]]); });
109 done(); 109 done();
110 110
111 var successfullyParsed = true; 111 var successfullyParsed = true;
OLDNEW
« no previous file with comments | « LayoutTests/editing/spelling/markers-input-type-text-expected.txt ('k') | LayoutTests/editing/spelling/spellcheck-async.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698