summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/editing/dnd/events/dragstart-event-manual.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/html/editing/dnd/events/dragstart-event-manual.html')
-rw-r--r--testing/web-platform/tests/html/editing/dnd/events/dragstart-event-manual.html7
1 files changed, 3 insertions, 4 deletions
diff --git a/testing/web-platform/tests/html/editing/dnd/events/dragstart-event-manual.html b/testing/web-platform/tests/html/editing/dnd/events/dragstart-event-manual.html
index 20786648da..9128401ffa 100644
--- a/testing/web-platform/tests/html/editing/dnd/events/dragstart-event-manual.html
+++ b/testing/web-platform/tests/html/editing/dnd/events/dragstart-event-manual.html
@@ -6,7 +6,6 @@
<link rel="author" title="Microsoft" href="http://www.microsoft.com/"/>
<link rel="help" href="http://dev.w3.org/html5/spec/dnd.html#drag-and-drop-processing-model"/>
<meta name="assert" content="Fire dragstart event during the drag and drop processing"/>
- <script src="../resources/dragdrop_support.js" type="text/javascript"></script>
<script type="text/javascript">
var EVENT, TARGET;
@@ -14,11 +13,11 @@
{
if ((TARGET == evt.target) && (EVENT == evt.type))
{
- LogTestResult("PASS");
+ document.getElementById("test_result").firstChild.data = "PASS";
}
else
{
- LogTestResult("FAIL");
+ document.getElementById("test_result").firstChild.data = "FAIL";
}
}
@@ -27,7 +26,7 @@
window.onload = function()
{
TARGET = document.getElementById("target");
- AddEventListenersForElement(EVENT, DragstartEvent, false, TARGET);
+ TARGET.addEventListener(EVENT, DragstartEvent, false);
}
</script>
</head>