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

Unified Diff: third_party/WebKit/LayoutTests/fast/dnd/link-dragging-draggable-div-with-dragged-link.html

Issue 2441023003: Align drag feedback for links with draggable="true" to Safari. (Closed)
Patch Set: Attempted to address feedback. Created 4 years, 2 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/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>

Powered by Google App Engine
This is Rietveld 408576698