| Index: third_party/WebKit/LayoutTests/fast/dnd/dropEffect-for-file.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/dnd/dropEffect-for-file.html b/third_party/WebKit/LayoutTests/fast/dnd/dropEffect-for-file.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1eb890804e319af758f9b14480626fae829d0419
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/dnd/dropEffect-for-file.html
|
| @@ -0,0 +1,49 @@
|
| +<!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 download <a download href="resources/dragged-file.txt">this file</a>,
|
| + and drag it into the box below, then click the "Done" button. Repeat this
|
| + action until the test completes.
|
| +</p>
|
| +
|
| +<div class="dropzone box">
|
| + Drop Here
|
| +</div>
|
| +
|
| +<p>
|
| + <button class="done">Done</button>
|
| +</p>
|
| +
|
| +<p>
|
| + Current test: <code class="test-description"></code>
|
| +</p>
|
| +
|
| +<script>
|
| +
|
| +dropEffectTest({ drop: 'copy', operation: 'none' });
|
| +dropEffectTest({ drop: 'link' });
|
| +dropEffectTest({ drop: 'move' });
|
| +dropEffectTest({ drop: 'none' });
|
| +dropEffectTest({ drop: 'dummy', operation: 'none' });
|
| +
|
| +promise_test(t => {
|
| + return Promise.resolve().then(() => {
|
| + document.querySelector('.test-description').textContent = 'done';
|
| + });
|
| +}, 'all tests complete');
|
| +
|
| +</script>
|
|
|