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

Unified Diff: third_party/WebKit/LayoutTests/svg/text/selection-dragging-outside.svg

Issue 1541083002: Fix invalid selection produced when dragging mouse outside the SVG text element (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: third_party/WebKit/LayoutTests/svg/text/selection-dragging-outside.svg
diff --git a/third_party/WebKit/LayoutTests/svg/text/selection-dragging-outside.svg b/third_party/WebKit/LayoutTests/svg/text/selection-dragging-outside.svg
new file mode 100644
index 0000000000000000000000000000000000000000..d4e7b394e721f3647b6914997c2df24b6c65d3f5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/svg/text/selection-dragging-outside.svg
@@ -0,0 +1,20 @@
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="400" height="400" style="border: 1px solid black;">
+ <text id="line" x="130" y="150" font-family="Arial" font-size="10" fill="black">Hello World. Hello, SVG.</text>
+<script>
+var line = document.getElementById("line");
+var bbox = line.getBBox();
+
+var x = bbox.x + bbox.width/2;
+var y = 300;
+
+if (eventSender) {
+ eventSender.mouseMoveTo(x, y);
+ eventSender.mouseDown();
+ eventSender.mouseMoveTo(400, y);
+ eventSender.mouseUp();
+}
+
+if (window.testRunner)
+ window.testRunner.dumpSelectionRect();
+</script>
+</svg>

Powered by Google App Engine
This is Rietveld 408576698