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

Unified Diff: third_party/WebKit/LayoutTests/fast/events/dropzone-003.html

Issue 2729353002: Remove webkitdropzone. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/events/dropzone-003.html
diff --git a/third_party/WebKit/LayoutTests/fast/events/dropzone-003.html b/third_party/WebKit/LayoutTests/fast/events/dropzone-003.html
deleted file mode 100644
index 5c04b8bd884f9c4b1f7c070771a7d1e24af45c2c..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/events/dropzone-003.html
+++ /dev/null
@@ -1,99 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<head>
-<script src="../../resources/js-test.js"></script>
-<style>
-#dropTarget, #dragMe { text-align: center; display: table-cell; vertical-align: middle }
-#dropTarget {width: 256px; height: 256px; border: 1px dashed}
-#dragMe {-webkit-user-drag: element; -webkit-user-select: none; background: #ff0000; width: 64px; height: 64px; color: white}
-</style>
-<script>
-var dragMe;
-var dropTarget;
-var dropEffectElem;
-var consoleElm;
-var event;
-
-window.onload = function()
-{
- dragMe = document.getElementById("dragMe");
- dropTarget = document.getElementById("dropTarget");
- dropEffectElem = document.getElementById("dropEffect");
- consoleElm = document.getElementById("console");
-
- if (!dragMe || !dropTarget || !dropEffectElem || !consoleElm)
- return;
-
- dropEffectElem.onclick = changeDropZone;
- changeDropZone();
- dropTarget.ondrop = drop;
-
- runTest();
-}
-
-function changeDropZone()
-{
- dropTarget.setAttribute("webkitdropzone", dropEffectElem.options[dropEffectElem.selectedIndex].value + " string:text/plain string:any/type");
-}
-
-function printDropEvent(e)
-{
- chosenDropEffect = dropEffectElem.options[dropEffectElem.selectedIndex].value;
- debug("Received drop event when chosenDropEffect is " + chosenDropEffect);
-}
-
-function runTest()
-{
- if (!window.eventSender)
- return;
-
- if (window.testRunner)
- testRunner.dumpAsText();
-
- var startX = dragMe.offsetLeft + 10;
- var startY = dragMe.offsetTop + dragMe.offsetHeight / 2;
- var endX = dropTarget.offsetLeft + 10;
- var endY = dropTarget.offsetTop + dropTarget.offsetHeight / 2
-
- var numEffects = dropEffectElem.options.length;
-
- for (var j = 0; j < numEffects; ++j) {
- dropEffectElem.options[j].selected = true;
- changeDropZone();
-
- eventSender.mouseMoveTo(startX, startY);
- eventSender.mouseDown();
- eventSender.leapForward(100);
- eventSender.mouseMoveTo(endX, endY);
- eventSender.mouseUp();
- }
-
- var testContainer = document.getElementById("test-container");
- if (testContainer)
- document.body.removeChild(testContainer);
- debug('<br /><span class="pass">TEST COMPLETE</span>');
-}
-</script>
-<script src="resources/dropzone.js"></script>
-</head>
-<body>
-<p id="description"></p>
-<div id="test-container">
-<div id="dropTarget">Drop the anchor onto me.<br/><br/>
-<label for="dropEffect">Expects dropEffect</label> <select id="dropEffect">
-<option value="copy">Copy</option>
-<option value="move">Move</option>
-<option value="link">Link</option>
-<option value="dummy">Nonexistent (Dummy) Effect should be converted to copy</option>
-</select>
-</div>
-<hr/>
-<p>Items that can be dragged to the drop target:</p>
-<a href="#" id="dragMe"></a>
-<hr/>
-</div>
-<div id="console"></div>
-<script>
-description("This test checks that drag-and-drop support works with a elements.<br/>");
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698