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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dnd/dropEffect-for-image.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 border: 1px solid black;
11 width: 100px;
12 height: 100px;
13 }
14 </style>
15
16 <p>
17 Please drag the green box into the "Drop Here" box repeatedly, until the test
18 ends.
19 </p>
20
21 <p>
22 <img class="dragged box no-ondragstart" src="resources/greenbox.png">
23 </p>
24
25 <div class="dropzone box">
26 Drop Here
27 </div>
28
29 <p>
30 Current test: <code class="test-description"></code>
31 </p>
32
33 <script>
34
35 dropEffectTest({ drop: 'copy', operation: 'copy' });
36 dropEffectTest({ drop: 'link', operation: 'link' });
37 dropEffectTest({ drop: 'move', operation: 'move' });
38 dropEffectTest({ drop: 'none' });
39 dropEffectTest({ drop: 'dummy', operation: 'copy' });
40
41 promise_test(t => {
42 return Promise.resolve().then(() => {
43 document.querySelector('.test-description').textContent = 'done';
44 });
45 }, 'all tests complete');
46
47 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698