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

Unified Diff: LayoutTests/editing/shadow/selection-across-shadows.html

Issue 1203923003: Add a layout test: editing/shadow/selection-across-shadows (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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-across-shadows-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/shadow/selection-across-shadows.html
diff --git a/LayoutTests/editing/shadow/selection-shadow-mouse-drag.html b/LayoutTests/editing/shadow/selection-across-shadows.html
similarity index 59%
copy from LayoutTests/editing/shadow/selection-shadow-mouse-drag.html
copy to LayoutTests/editing/shadow/selection-across-shadows.html
index bd51b25defdf55578b6827e9ebe30324c409c03b..9914f09d404efeae8fe78e44e1e4a31871edfa13 100644
--- a/LayoutTests/editing/shadow/selection-shadow-mouse-drag.html
+++ b/LayoutTests/editing/shadow/selection-across-shadows.html
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<style>* { font-family: monospace; }</style>
-<div id="host">[<span id="one">One</span> <span id="two">Two</span>]</div>
+<div id="host1">[<span id="one">One</span>]</div>
+<div id="host2">[<span id="two">Two</span>]</div>
<script>
function doDrag(start, end) {
if (!window.eventSender)
@@ -10,9 +11,10 @@ function doDrag(start, end) {
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 host1 = document.querySelector('#host1');
+host1.createShadowRoot().innerHTML = '[<content select="#one"></content>]';
+var host2 = document.querySelector('#host2');
+host2.createShadowRoot().innerHTML = '[<content select="#two"></content>]';
var one = document.querySelector('#one');
var two = document.querySelector('#two');
doDrag(two, one);
« no previous file with comments | « no previous file | LayoutTests/editing/shadow/selection-across-shadows-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698