Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <script src="../../../resources/testharness.js"></script> | |
| 3 <script src="../../../resources/testharnessreport.js"></script> | |
| 4 <div id="container" spellcheck="false" lang="en-us"> | |
| 5 <div id="host"><div id="editable" contenteditable></div></div> | |
| 6 </div> | |
| 7 <script> | |
| 8 if (window.internals) { | |
| 9 internals.settings.setUnifiedTextCheckerEnabled(true); | |
| 10 internals.settings.setAsynchronousSpellCheckingEnabled(false); | |
| 11 internals.setContinuousSpellCheckingEnabled(true); | |
| 12 } | |
| 13 var host = document.getElementById("host"); | |
| 14 var root = host.createShadowRoot(); | |
| 15 root.innerHTML = "<div spellcheck=true><content></content></div>"; | |
| 16 var editable = document.getElementById("editable"); | |
| 17 editable.innerText = "zz zz zz."; | |
| 18 editable.focus(); | |
| 19 if (window.internals) { | |
| 20 test(function () { | |
|
hayato
2015/01/21 09:04:50
I guess this is checking whether 'spelling' is ena
kojii
2015/01/21 16:46:20
Done.
| |
| 21 assert_equals(internals.markerCountForNode(editable.firstChild, "spellin g"), 3); | |
| 22 }, "spellcheck tarverses composed tree"); | |
| 23 container.style.display = "none"; | |
| 24 } | |
| 25 </script> | |
| OLD | NEW |