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

Side by Side 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, 9 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!doctype html>
2 <meta charset="utf-8" />
3 <title>Drag and Drop: interaction between effectAllowed and dropEffect</title>
4 <link rel="help" href="https://html.spec.whatwg.org/multipage/interaction.html#d rag-and-drop-processing-model">
5 <script src="../../resources/testharness.js"></script>
6 <script src="../../resources/testharnessreport.js"></script>
7 <script src="resources/dropEffect-common.js"></script>
8 <style>
9 .box {
10 display: block;
11 border: 1px solid black;
12 width: 100px;
13 height: 100px;
14 }
15 </style>
16
17 <p>
18 Please drag the "Drag Me" box into the "Drop Here" box repeatedly, until the
19 test ends.
20 </p>
21
22 <p>
23 <a class="dragged box no-ondragstart" href="https://www.chromium.org">
24 Drag Me
25 </a>
26 </p>
27
28 <div class="dropzone box">
29 Drop Here
30 </div>
31
32 <p>
33 Current test: <code class="test-description"></code>
34 </p>
35
36 <script>
37
38 dropEffectTest({ drop: 'copy', operation: 'copy' });
39 dropEffectTest({ drop: 'link', operation: 'link' });
40 dropEffectTest({ drop: 'move', operation: 'move' });
41 dropEffectTest({ drop: 'none' });
42 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
43
44 promise_test(t => {
45 return Promise.resolve().then(() => {
46 document.querySelector('.test-description').textContent = 'done';
47 });
48 }, 'all tests complete');
49
50 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698