]> source.dussan.org Git - vaadin-framework.git/commitdiff
renamed html file so that test bench don't think it is a test script
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Mon, 21 Nov 2011 14:18:27 +0000 (14:18 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Mon, 21 Nov 2011 14:18:27 +0000 (14:18 +0000)
svn changeset:22085/svn branch:6.8

tests/testbench/com/vaadin/tests/dd/html5drop.html [deleted file]

diff --git a/tests/testbench/com/vaadin/tests/dd/html5drop.html b/tests/testbench/com/vaadin/tests/dd/html5drop.html
deleted file mode 100644 (file)
index ed05fce..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<meta charset="UTF-8">
-<title>Insert title here</title>
-<script type="text/javascript">
-       if (window.addEventListener) {
-               window.addEventListener('load', init, false); //W3C
-       } else {
-               window.attachEvent('onload', init); //IE
-       }
-
-       function init(event) {
-               var el = document.getElementById("drop");
-               if (el.addEventListener) {
-                       el.addEventListener("dragover", dragover, false);
-                       el.addEventListener("dragenter", dragenter, false);
-                       el.addEventListener("drop", drop, false);
-               } else if (el.attachEvent) {
-                       el.attachEvent('ondragover', dragover);
-                       el.attachEvent('ondragenter', dragenter);
-                       el.attachEvent('ondrop', drop);
-               }
-       }
-
-       function dragover(event) {
-               event.dataTransfer.dropEffect = 'copy';
-        return cancel(event);
-       }
-
-       function drop(event) {
-               document.getElementById("drop").innerHTML = event.dataTransfer.getData('Text');
-        return cancel(event);
-       }
-
-       function dragenter(event) {
-               return cancel(event);
-       }
-
-       function cancel(event) {
-               if (event.preventDefault) {
-                       event.preventDefault();
-               }
-               return false;
-       }
-</script>
-</head>
-<body>
-       <div id="drop">or over here</div>
-</body>
-</html>
\ No newline at end of file