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

Unified Diff: LayoutTests/svg/dom/title-in-shadow-tree.html

Issue 216463003: Allow <use> inside author shadow roots (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove loop in isInUserAgentShadowTree, add a title test Created 6 years, 9 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/svg/dom/title-in-shadow-tree.html
diff --git a/LayoutTests/svg/dom/title-in-shadow-tree.html b/LayoutTests/svg/dom/title-in-shadow-tree.html
new file mode 100644
index 0000000000000000000000000000000000000000..bef72aaf84347ba1bc4e8ce642514f0b964d90db
--- /dev/null
+++ b/LayoutTests/svg/dom/title-in-shadow-tree.html
@@ -0,0 +1,30 @@
+<!DOCTYPE HTML>
+<svg width="100" height="100" style="display: none;">
+ <rect id="greenSquare" width="100" height="100" fill="green">
+ <title>FAIL: This text should not appear as a tooltip.</title>
+ </rect>
+</svg>
+
+<template id="template">
+ <svg width="100" height="100">
+ <use xlink:href="#greenSquare">
+ <title>PASS: This text should appear as a tooltip.</title>
+ </use>
+ </svg>
+</template>
+
+<script>
+ document.body.createShadowRoot().appendChild(template.content.cloneNode(true));
+
+ onload = function() {
+ if (window.eventSender) {
+ eventSender.dragMode = false;
+ eventSender.mouseMoveTo(75, 75);
+ document.write(testRunner.tooltipText);
+ if (window.testRunner)
+ testRunner.dumpAsText();
+ }
+ }
+</script>
+
+FAIL: Test did not run.
« no previous file with comments | « LayoutTests/svg/dom/nested-use-in-shadow-tree-expected.html ('k') | LayoutTests/svg/dom/title-in-shadow-tree-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698