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

Unified Diff: LayoutTests/fast/dom/shadow/title-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/title-attribute-inherit.html
diff --git a/LayoutTests/fast/dom/shadow/title-attribute-inherit.html b/LayoutTests/fast/dom/shadow/title-attribute-inherit.html
new file mode 100644
index 0000000000000000000000000000000000000000..3f526b484102482ff3be5427287aba6019bfb733
--- /dev/null
+++ b/LayoutTests/fast/dom/shadow/title-attribute-inherit.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<div id="container" title="document">
+ <div id="host"><div id="distributed">distributed</div></div>
+</div>
+<script>
+var host = document.getElementById("host");
+var root = host.createShadowRoot();
+root.innerHTML = "<div title='shadow'><content></content></div>";
+moveTo(host);
+if (window.testRunner) {
+ test(function () {
+ assert_equals(testRunner.tooltipText, "shadow");
+ }, "title tarverses composed tree");
+ container.style.display = "none";
+}
+
+function moveTo(target) {
+ if (window.eventSender) {
+ eventSender.dragMode = false;
+ eventSender.mouseMoveTo(target.offsetLeft, target.offsetTop + target.offsetHeight / 2);
+ }
+}
+</script>

Powered by Google App Engine
This is Rietveld 408576698