Chromium Code Reviews| 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..d7c34eaafbcd65c4f4abb1915ce2bbee220979ed |
| --- /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, { |
|
dcheng
2016/10/31 22:31:34
Nit: it's useful to document the expected result h
pwnall
2016/11/04 23:08:29
Done.
Good point! All the tests drag the element w
|
| + dragStartUriList: 'https://www.chromium.org/', |
| + dragStartTypes: ['text/html', 'text/plain', 'text/uri-list'], |
| + }); |
| +}, 'Link inside div with draggable="true"'); |
| + |
| +</script> |