Title: [115724] trunk/LayoutTests
- Revision
- 115724
- Author
- [email protected]
- Date
- 2012-05-01 07:57:58 -0700 (Tue, 01 May 2012)
Log Message
drag of links with styled text drop as links with plain text
https://bugs.webkit.org/show_bug.cgi?id=19386
Reviewed by Hajime Morita.
Add a regression test since the said bug appears to have been fixed on ToT WebKit.
* editing/pasteboard/drag-drop-url-with-style-expected.txt: Added.
* editing/pasteboard/drag-drop-url-with-style.html: Added.
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (115723 => 115724)
--- trunk/LayoutTests/ChangeLog 2012-05-01 14:53:59 UTC (rev 115723)
+++ trunk/LayoutTests/ChangeLog 2012-05-01 14:57:58 UTC (rev 115724)
@@ -1,3 +1,15 @@
+2012-05-01 Ryosuke Niwa <[email protected]>
+
+ drag of links with styled text drop as links with plain text
+ https://bugs.webkit.org/show_bug.cgi?id=19386
+
+ Reviewed by Hajime Morita.
+
+ Add a regression test since the said bug appears to have been fixed on ToT WebKit.
+
+ * editing/pasteboard/drag-drop-url-with-style-expected.txt: Added.
+ * editing/pasteboard/drag-drop-url-with-style.html: Added.
+
2012-05-01 Andreas Kling <[email protected]>
Remove Mac WK2-specific result for svg/zoom/page/zoom-replaced-intrinsic-ratio-001.htm.
Added: trunk/LayoutTests/editing/pasteboard/drag-drop-url-with-style-expected.txt (0 => 115724)
--- trunk/LayoutTests/editing/pasteboard/drag-drop-url-with-style-expected.txt (rev 0)
+++ trunk/LayoutTests/editing/pasteboard/drag-drop-url-with-style-expected.txt 2012-05-01 14:57:58 UTC (rev 115724)
@@ -0,0 +1,18 @@
+This tests dragging and dropping a URL. The content before and after the drag and drop should match.
+
+before:
+| <a>
+| href=""
+| style="color:orange"
+| target="_blank"
+| title="some title"
+| "<#selection-anchor>drag me<#selection-focus>"
+
+after:
+| <a>
+| href=""
+| style="color: orange; "
+| target="_blank"
+| title="some title"
+| "<#selection-anchor>drag me<#selection-focus>"
+| <br>
Added: trunk/LayoutTests/editing/pasteboard/drag-drop-url-with-style.html (0 => 115724)
--- trunk/LayoutTests/editing/pasteboard/drag-drop-url-with-style.html (rev 0)
+++ trunk/LayoutTests/editing/pasteboard/drag-drop-url-with-style.html 2012-05-01 14:57:58 UTC (rev 115724)
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<html>
+<body>
+<p id="description">This tests dragging and dropping a URL. The content before and after the drag and drop should match.</p>
+<div contenteditable><a href="" title="some title" target="_blank" style="color:orange">drag me</a></div>
+<p>to the box blow:</p>
+<div id="destination" contenteditable _ondrop_="setTimeout(dump, 0);" style="border: solid 2px blue; padding: 5px;"><br></div>
+<script src=""
+<script>
+
+Markup.waitUntilDone();
+
+Markup.description(document.getElementById('description').textContent);
+
+var target = document.getElementsByTagName("a")[0];
+getSelection().selectAllChildren(target);
+Markup.dump(target.parentNode, 'before');
+
+function dump() {
+ Markup.dump('destination', 'after');
+ Markup.notifyDone();
+}
+
+if (window.eventSender) {
+ var x = target.offsetLeft + target.offsetWidth / 2;
+ var y = target.offsetTop + target.offsetHeight / 2;
+ eventSender.mouseMoveTo(x, y);
+ eventSender.mouseDown();
+
+ var destination = document.getElementById("destination");
+ eventSender.leapForward(300);
+ eventSender.mouseMoveTo(destination.offsetLeft + 10, destination.offsetTop + destination.offsetHeight / 2);
+ eventSender.mouseUp();
+
+ setTimeout(function () { destination.innerHTML = 'FAIL'; dump(); }, 100);
+}
+
+</script>
+</body>
+</html>
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes