Index: third_party/WebKit/LayoutTests/svg/text/selection-dragging-outside-1.html |
diff --git a/third_party/WebKit/LayoutTests/svg/text/selection-dragging-outside-1.html b/third_party/WebKit/LayoutTests/svg/text/selection-dragging-outside-1.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..753ad2ef795693a68efc22a1e2eedb8540ae9a60 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/svg/text/selection-dragging-outside-1.html |
@@ -0,0 +1,20 @@ |
+<!DOCTYPE html> |
+<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;"> |
+ <g> |
+ <text x="130" y="30" font-family="Arial" font-size="10" fill="black">Happy, Web</text> |
+ <text x="130" y="50" font-family="Arial" font-size="10" fill="black">Happy, SVG</text> |
+ <text x="130" y="70" font-family="Arial" font-size="10" fill="black">Happy, ;)link</text> |
+ </g> |
+ <text id="line" x="130" y="150" font-family="Arial" font-size="10" fill="black">Hello World. Hello, SVG.</text> |
+</svg> |
+<script src="../../resources/js-test.js"></script> |
+<script src="resources/SelectionTestCase.js"></script> |
+<script type="text/javascript"> |
+function runTest() { |
fs
2016/01/26 14:24:01
This function could be removed - just inline it in
|
+ selectTextFromCharToPoint({ id: 'line', offset: 0 }, { x: 300, y: 300 }, { start: "0", end: "24" }); |
+ selectTextFromCharToPoint({ id: 'line', offset: 6 }, { x: 300, y: 300 }, { start: "6", end: "24" }); |
+ selectTextFromCharToPoint({ id: 'line', offset: 12 }, { x: 300, y: 300 }, { start: "12", end: "24" }); |
fs
2016/01/26 14:24:01
You should have a test where the point being moved
|
+} |
+ |
+runTest(); |
+</script> |