Index: third_party/WebKit/LayoutTests/fast/dnd/link-dragging-draggable-div-with-dragged-link.html |
diff --git a/third_party/WebKit/LayoutTests/fast/dnd/link-dragging-draggable-div-with-dragged-link.html b/third_party/WebKit/LayoutTests/fast/dnd/link-dragging-draggable-div-with-dragged-link.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..373441db2a949087da7db842684e1580477c70c3 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/dnd/link-dragging-draggable-div-with-dragged-link.html |
@@ -0,0 +1,32 @@ |
+<!DOCTYPE html> |
+<script src="../../resources/ahem.js"></script> |
+<link rel="stylesheet" href="resources/link-dragging-common.css" /> |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
+<script src="resources/link-dragging-common.js"></script> |
+ |
+<p> |
+ Please drag the "Drag Me" text into the "Drop Here" rectangle. |
+</p> |
+ |
+<article> |
+ <div class="box" draggable="true"> |
+ <a class="dragged" href="https://www.chromium.org"> |
+ Drag Me - drag the text, not the box |
+ </a> |
+ </div> |
+ <div class="dropzone box"> |
+ Drop Here |
+ </div> |
+</article> |
+ |
+<script> |
+ |
+promise_test((t) => { |
+ return runLinkDraggingTest(t, { |
+ dragStartUriList: 'https://www.chromium.org/', |
+ dragStartTypes: ['text/html', 'text/plain', 'text/uri-list'], |
+ }); |
+}, 'Dragging a link inside a div with draggable="true"'); |
+ |
+</script> |