Chromium Code Reviews| Index: LayoutTests/fast/dom/shadow/spellcheck-attribute-inherit.html |
| diff --git a/LayoutTests/fast/dom/shadow/spellcheck-attribute-inherit.html b/LayoutTests/fast/dom/shadow/spellcheck-attribute-inherit.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..59497dde2ef3447ca1f556d5b31f37f1127b5b2b |
| --- /dev/null |
| +++ b/LayoutTests/fast/dom/shadow/spellcheck-attribute-inherit.html |
| @@ -0,0 +1,25 @@ |
| +<!DOCTYPE html> |
| +<script src="../../../resources/testharness.js"></script> |
| +<script src="../../../resources/testharnessreport.js"></script> |
| +<div id="container" spellcheck="false" lang="en-us"> |
| + <div id="host"><div id="editable" contenteditable></div></div> |
| +</div> |
| +<script> |
| +if (window.internals) { |
| + internals.settings.setUnifiedTextCheckerEnabled(true); |
| + internals.settings.setAsynchronousSpellCheckingEnabled(false); |
| + internals.setContinuousSpellCheckingEnabled(true); |
| +} |
| +var host = document.getElementById("host"); |
| +var root = host.createShadowRoot(); |
| +root.innerHTML = "<div spellcheck=true><content></content></div>"; |
| +var editable = document.getElementById("editable"); |
| +editable.innerText = "zz zz zz."; |
| +editable.focus(); |
| +if (window.internals) { |
| + 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.
|
| + assert_equals(internals.markerCountForNode(editable.firstChild, "spelling"), 3); |
| + }, "spellcheck tarverses composed tree"); |
| + container.style.display = "none"; |
| +} |
| +</script> |