OLD | NEW |
(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 download <a download href="resources/dragged-file.txt">this file</a>, |
| 19 and drag it into the box below, then click the "Done" button. Repeat this |
| 20 action until the test completes. |
| 21 </p> |
| 22 |
| 23 <div class="dropzone box"> |
| 24 Drop Here |
| 25 </div> |
| 26 |
| 27 <p> |
| 28 <button class="done">Done</button> |
| 29 </p> |
| 30 |
| 31 <p> |
| 32 Current test: <code class="test-description"></code> |
| 33 </p> |
| 34 |
| 35 <script> |
| 36 |
| 37 dropEffectTest({ drop: 'copy', operation: 'none' }); |
| 38 dropEffectTest({ drop: 'link' }); |
| 39 dropEffectTest({ drop: 'move' }); |
| 40 dropEffectTest({ drop: 'none' }); |
| 41 dropEffectTest({ drop: 'dummy', operation: 'none' }); |
| 42 |
| 43 promise_test(t => { |
| 44 return Promise.resolve().then(() => { |
| 45 document.querySelector('.test-description').textContent = 'done'; |
| 46 }); |
| 47 }, 'all tests complete'); |
| 48 |
| 49 </script> |
OLD | NEW |