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

Unified Diff: LayoutTests/editing/shadow/selection-shadow-mouse-drag.html

Issue 1202153004: Enable selection for the composed tree (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rename the flag 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
« no previous file with comments | « no previous file | LayoutTests/editing/shadow/selection-shadow-mouse-drag-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/shadow/selection-shadow-mouse-drag.html
diff --git a/LayoutTests/editing/shadow/selection-shadow-mouse-drag.html b/LayoutTests/editing/shadow/selection-shadow-mouse-drag.html
new file mode 100644
index 0000000000000000000000000000000000000000..bd51b25defdf55578b6827e9ebe30324c409c03b
--- /dev/null
+++ b/LayoutTests/editing/shadow/selection-shadow-mouse-drag.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<style>* { font-family: monospace; }</style>
+<div id="host">[<span id="one">One</span> <span id="two">Two</span>]</div>
+<script>
+function doDrag(start, end) {
+ if (!window.eventSender)
+ return;
+ eventSender.mouseMoveTo(start.offsetLeft + (start.offsetWidth / 2), start.offsetTop + 3);
+ eventSender.mouseDown();
+ eventSender.mouseMoveTo(end.offsetLeft + (end.offsetWidth / 2), end.offsetTop + 3);
+ eventSender.mouseUp();
+}
+var host = document.querySelector('#host');
+var shadowRoot = host.createShadowRoot();
+shadowRoot.innerHTML = '[<content select="#two"></content> <content select="#one"></content>]';
+var one = document.querySelector('#one');
+var two = document.querySelector('#two');
+doDrag(two, one);
+</script>
« no previous file with comments | « no previous file | LayoutTests/editing/shadow/selection-shadow-mouse-drag-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698