6 var expectedEvents = ["dragstart", "dragend"];
9 function recordEvent(e) {
11 if (e.type !== expectedEvents[i]) {
12 log("FAIL - expected " + expectedEvents[i] + " but got " + e.type);
13 } else if (i == expectedEvents.length - 1) {
22 var tn = document.createTextNode(msg + "\n");
23 document.getElementById("log").appendChild(tn);
26 function dragStart(e) {
30 document.ondragend = function(e) {
34 document.ondrop = function(e) {
35 log("FAIL - we should not get a " + e.type);
38 document.ondragenter = document.ondragover = function(e) {
46 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=26699">https://bugs.webkit.org/show_bug.cgi?id=26699</a></p>
50 <p>Drag the "Drag Me!" link below</p>
53 <a id="test-link" href="http://webkit.org" ondragstart="dragStart(event)">Drag Me!</a>