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

Unified Diff: LayoutTests/fast/dom/shadow/hit-test-inside-shadow-root.html

Issue 1204933006: Elements moved from a shadow root to a detached tree should clear their IsInShadowTree Flag (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 5 years, 6 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/hit-test-inside-shadow-root.html
diff --git a/LayoutTests/fast/dom/shadow/hit-test-inside-shadow-root.html b/LayoutTests/fast/dom/shadow/hit-test-inside-shadow-root.html
new file mode 100644
index 0000000000000000000000000000000000000000..0b74430acc3cf423954f2d058e88208d6cad595f
--- /dev/null
+++ b/LayoutTests/fast/dom/shadow/hit-test-inside-shadow-root.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<sub id="sub">
+</sub>
+<del id="del">
+ <i id="italic"></i>
+</del>
+<div id="div"></div>
+<script>
+ text = document.createTextNode('Text');
+ italic.appendChild(text);
+
+ shadow = sub.createShadowRoot();
+ shadow.appendChild(del);
+
+ // Take the text node out of the document
+ section = document.createElement('div');
+ section.appendChild(sub);
+ div.appendChild(text);
+</script>
+<p>crbug.com/491844 Moving a node from inside a shadow-root to a detached tree should not crash when we hit-test it. Hover over 'Text' to test. </p>
+<div id="result">Test passes if it does not crash.</div>
+<script>
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ eventSender.mouseMoveTo(10, 10);
+ eventSender.mouseDown();
+ eventSender.mouseUp();
+}
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/hit-test-inside-shadow-root-expected.txt » ('j') | Source/core/dom/Element.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698