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

Unified Diff: third_party/WebKit/LayoutTests/fast/dnd/dropEffect-for-link.html

Issue 2720463002: Remove webkitdropzone. (Closed)
Patch Set: Finished rewriting dropzone tests. Created 3 years, 10 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/dropEffect-for-link.html
diff --git a/third_party/WebKit/LayoutTests/fast/dnd/dropEffect-for-link.html b/third_party/WebKit/LayoutTests/fast/dnd/dropEffect-for-link.html
new file mode 100644
index 0000000000000000000000000000000000000000..33dfd26c9595b9f847e58655ae447f8c2e17a317
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/dnd/dropEffect-for-link.html
@@ -0,0 +1,50 @@
+<!doctype html>
+<meta charset="utf-8" />
+<title>Drag and Drop: interaction between effectAllowed and dropEffect</title>
+<link rel="help" href="https://html.spec.whatwg.org/multipage/interaction.html#drag-and-drop-processing-model">
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="resources/dropEffect-common.js"></script>
+<style>
+.box {
+ display: block;
+ border: 1px solid black;
+ width: 100px;
+ height: 100px;
+}
+</style>
+
+<p>
+ Please drag the "Drag Me" box into the "Drop Here" box repeatedly, until the
+ test ends.
+</p>
+
+<p>
+ <a class="dragged box no-ondragstart" href="https://www.chromium.org">
+ Drag Me
+ </a>
+</p>
+
+<div class="dropzone box">
+ Drop Here
+</div>
+
+<p>
+ Current test: <code class="test-description"></code>
+</p>
+
+<script>
+
+dropEffectTest({ drop: 'copy', operation: 'copy' });
+dropEffectTest({ drop: 'link', operation: 'link' });
+dropEffectTest({ drop: 'move', operation: 'move' });
+dropEffectTest({ drop: 'none' });
+dropEffectTest({ drop: 'dummy', operation: 'copy' });
dcheng 2017/03/02 20:44:49 The results look right to me, but just to confirm:
pwnall 2017/03/02 20:53:56 Yup. Everything matches dropzone-003 except for th
+
+promise_test(t => {
+ return Promise.resolve().then(() => {
+ document.querySelector('.test-description').textContent = 'done';
+ });
+}, 'all tests complete');
+
+</script>

Powered by Google App Engine
This is Rietveld 408576698