OLD | NEW |
1 description('This tests if internals.hasSpellingMarker works for differnt type o
f elements. ' | 1 description('This tests if internals.hasSpellingMarker works for differnt type o
f elements. ' |
2 + 'This test succeds when there are four elements having "zz ". ' | 2 + 'This test succeds when there are four elements having "zz ". ' |
3 + 'However, only the last one should not contatin spelling marker.'); | 3 + 'However, only the last one should not contatin spelling marker.'); |
4 | 4 |
5 jsTestIsAsync = true; | 5 jsTestIsAsync = true; |
6 | 6 |
7 if (window.internals) | |
8 internals.settings.setUnifiedTextCheckerEnabled(true); | |
9 | |
10 var testRoot = document.createElement("div"); | 7 var testRoot = document.createElement("div"); |
11 document.body.insertBefore(testRoot, document.body.firstChild); | 8 document.body.insertBefore(testRoot, document.body.firstChild); |
12 | 9 |
13 function addContainer(markup) | 10 function addContainer(markup) |
14 { | 11 { |
15 var contatiner = document.createElement("div"); | 12 var contatiner = document.createElement("div"); |
16 contatiner.innerHTML = markup; | 13 contatiner.innerHTML = markup; |
17 testRoot.appendChild(contatiner); | 14 testRoot.appendChild(contatiner); |
18 | 15 |
19 return contatiner; | 16 return contatiner; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 return setTimeout(verifySpellingMarkers(nextTestCase), 0); | 49 return setTimeout(verifySpellingMarkers(nextTestCase), 0); |
53 | 50 |
54 if (window.internals) | 51 if (window.internals) |
55 testRoot.style.display = "none"; | 52 testRoot.style.display = "none"; |
56 | 53 |
57 finishJSTest(); | 54 finishJSTest(); |
58 } | 55 } |
59 done(); | 56 done(); |
60 | 57 |
61 var successfullyParsed = true; | 58 var successfullyParsed = true; |
OLD | NEW |