summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/editing/dnd/events
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/html/editing/dnd/events')
-rw-r--r--testing/web-platform/tests/html/editing/dnd/events/drag-event-div-manual.html7
-rw-r--r--testing/web-platform/tests/html/editing/dnd/events/drag-event-manual.html7
-rw-r--r--testing/web-platform/tests/html/editing/dnd/events/dragend-event-manual.html7
-rw-r--r--testing/web-platform/tests/html/editing/dnd/events/dragenter-event-manual.html7
-rw-r--r--testing/web-platform/tests/html/editing/dnd/events/dragleave-event-manual.html7
-rw-r--r--testing/web-platform/tests/html/editing/dnd/events/dragover-event-manual.html7
-rw-r--r--testing/web-platform/tests/html/editing/dnd/events/dragstart-event-manual.html7
-rw-r--r--testing/web-platform/tests/html/editing/dnd/events/drop-event-manual.html7
8 files changed, 24 insertions, 32 deletions
diff --git a/testing/web-platform/tests/html/editing/dnd/events/drag-event-div-manual.html b/testing/web-platform/tests/html/editing/dnd/events/drag-event-div-manual.html
index 79c0c4332d..505b0049be 100644
--- a/testing/web-platform/tests/html/editing/dnd/events/drag-event-div-manual.html
+++ b/testing/web-platform/tests/html/editing/dnd/events/drag-event-div-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 drag event when dragging a div element"/>
- <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, DragEvent, false, TARGET);
+ TARGET.addEventListener(EVENT, DragEvent, false);
}
</script>
</head>
diff --git a/testing/web-platform/tests/html/editing/dnd/events/drag-event-manual.html b/testing/web-platform/tests/html/editing/dnd/events/drag-event-manual.html
index d278b864bb..d3f517ea1d 100644
--- a/testing/web-platform/tests/html/editing/dnd/events/drag-event-manual.html
+++ b/testing/web-platform/tests/html/editing/dnd/events/drag-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 drag 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, DragEvent, false, TARGET);
+ TARGET.addEventListener(EVENT, DragEvent, false);
}
</script>
</head>
diff --git a/testing/web-platform/tests/html/editing/dnd/events/dragend-event-manual.html b/testing/web-platform/tests/html/editing/dnd/events/dragend-event-manual.html
index 8bfb1fb7b6..b4bb621e88 100644
--- a/testing/web-platform/tests/html/editing/dnd/events/dragend-event-manual.html
+++ b/testing/web-platform/tests/html/editing/dnd/events/dragend-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 dragend 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, DragendEvent, false, TARGET);
+ TARGET.addEventListener(EVENT, DragendEvent, false);
}
</script>
</head>
diff --git a/testing/web-platform/tests/html/editing/dnd/events/dragenter-event-manual.html b/testing/web-platform/tests/html/editing/dnd/events/dragenter-event-manual.html
index e81b32949c..23b404b0b1 100644
--- a/testing/web-platform/tests/html/editing/dnd/events/dragenter-event-manual.html
+++ b/testing/web-platform/tests/html/editing/dnd/events/dragenter-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 dragenter 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, DragenterEvent, false, TARGET);
+ TARGET.addEventListener(EVENT, DragenterEvent, false);
}
</script>
</head>
diff --git a/testing/web-platform/tests/html/editing/dnd/events/dragleave-event-manual.html b/testing/web-platform/tests/html/editing/dnd/events/dragleave-event-manual.html
index f6a405915f..a400fa3417 100644
--- a/testing/web-platform/tests/html/editing/dnd/events/dragleave-event-manual.html
+++ b/testing/web-platform/tests/html/editing/dnd/events/dragleave-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 dragleave 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, DragleaveEvent, false, TARGET);
+ TARGET.addEventListener(EVENT, DragleaveEvent, false);
}
</script>
</head>
diff --git a/testing/web-platform/tests/html/editing/dnd/events/dragover-event-manual.html b/testing/web-platform/tests/html/editing/dnd/events/dragover-event-manual.html
index f8d99241d5..f37a33cff6 100644
--- a/testing/web-platform/tests/html/editing/dnd/events/dragover-event-manual.html
+++ b/testing/web-platform/tests/html/editing/dnd/events/dragover-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 dragover 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, DragoverEvent, false, TARGET);
+ TARGET.addEventListener(EVENT, DragoverEvent, false);
}
</script>
</head>
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>
diff --git a/testing/web-platform/tests/html/editing/dnd/events/drop-event-manual.html b/testing/web-platform/tests/html/editing/dnd/events/drop-event-manual.html
index 2897bd5713..8393e38696 100644
--- a/testing/web-platform/tests/html/editing/dnd/events/drop-event-manual.html
+++ b/testing/web-platform/tests/html/editing/dnd/events/drop-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 drop 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, DropEvent, false, TARGET);
+ TARGET.addEventListener(EVENT, DropEvent, false);
}
</script>
</head>