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

Side by Side 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 unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698