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

Unified Diff: LayoutTests/fast/dom/shadow/spellcheck-attribute-inherit.html

Issue 859943002: Use the composed tree for the title attributes in Shadow DOM (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698