diff --git a/html/editing/dnd/drop/001.xhtml b/html/editing/dnd/drop/001.xhtml
index 32dd0f7fa0c3d6..b6cda736a4ea51 100644
--- a/html/editing/dnd/drop/001.xhtml
+++ b/html/editing/dnd/drop/001.xhtml
@@ -5,6 +5,7 @@
+
dropEffect is correctly set when it matches effectAllowed
@@ -59,17 +60,11 @@
async function test() {
await new Promise(loaded => window.addEventListener("load", loaded));
- function onDropCallBack(event) {
- assert_equals(event.target.textContent, event.dataTransfer.dropEffect);
- assert_equals(event.target.textContent, event.dataTransfer
- .effectAllowed);
- return true;
- }
for (const effect of ['copy', 'move', 'link']) {
const dragDiv = document.getElementById(effect + '-drag');
const dropDiv = document.getElementById(effect + '-drop');
dragDropTest(
- dragDiv, dropDiv, onDropCallBack,
+ dragDiv, dropDiv, dropEffectOnDropCallBack,
'dropEffect should match effectAllowed on drop for ' + effect);
}
}
diff --git a/html/editing/dnd/drop/002.xhtml b/html/editing/dnd/drop/002.xhtml
index 1c81c9ec1e4b8e..5ce105178a681f 100644
--- a/html/editing/dnd/drop/002.xhtml
+++ b/html/editing/dnd/drop/002.xhtml
@@ -5,6 +5,7 @@
+
Text input selection drag and drop: allowed effects
diff --git a/html/editing/dnd/drop/003.xhtml b/html/editing/dnd/drop/003.xhtml
index b1d94ab2e3d572..10c3baed0baa87 100644
--- a/html/editing/dnd/drop/003.xhtml
+++ b/html/editing/dnd/drop/003.xhtml
@@ -5,6 +5,7 @@
+
dropEffect matches effectAllowed for link drag and drop
diff --git a/html/editing/dnd/drop/004.xhtml b/html/editing/dnd/drop/004.xhtml
index ae2448ff5a316f..806427dcbbaf1a 100644
--- a/html/editing/dnd/drop/004.xhtml
+++ b/html/editing/dnd/drop/004.xhtml
@@ -5,6 +5,7 @@
+
dropEffect matches effectAllowed for PNG image drag and drop
diff --git a/html/editing/dnd/drop/005.xhtml b/html/editing/dnd/drop/005.xhtml
index 06a98957aad2e6..95290b7979e011 100644
--- a/html/editing/dnd/drop/005.xhtml
+++ b/html/editing/dnd/drop/005.xhtml
@@ -5,6 +5,7 @@
+
SVG image drag and drop: allowed effects 'copy','move','link'
diff --git a/html/editing/dnd/drop/006.xhtml b/html/editing/dnd/drop/006.xhtml
index 8ba107dfc24504..70d4933db301fb 100644
--- a/html/editing/dnd/drop/006.xhtml
+++ b/html/editing/dnd/drop/006.xhtml
@@ -5,6 +5,7 @@
+
Canvas drag and drop: allowed effects 'copy','move','link'
diff --git a/html/editing/dnd/drop/029.html b/html/editing/dnd/drop/029.html
new file mode 100644
index 00000000000000..6a9eee15f79e08
--- /dev/null
+++ b/html/editing/dnd/drop/029.html
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+ Test all effectAllowed against none dropEffect on drop
+
+
+
+ These are the draggable elements with different effectAllowed
+ settings:
+
+
+ Drop targets with different dropEffects:
+
none
+
+
+
+
diff --git a/html/editing/dnd/drop/030.html b/html/editing/dnd/drop/030.html
new file mode 100644
index 00000000000000..4250ad5ca7e389
--- /dev/null
+++ b/html/editing/dnd/drop/030.html
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+
+
+
+ Test all effectAllowed against copy dropEffect on drop
+
+
+
+
+ These are the draggable elements with different effectAllowed
+ settings:
+
+
+ Drop targets with different dropEffects:
+
copy
+
+
+
+
+
diff --git a/html/editing/dnd/drop/031.html b/html/editing/dnd/drop/031.html
new file mode 100644
index 00000000000000..a5d1cfcedc809a
--- /dev/null
+++ b/html/editing/dnd/drop/031.html
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+
+
+
+ Test all effectAllowed against link dropEffect on drop
+
+
+
+
+ These are the draggable elements with different effectAllowed
+ settings:
+
+
+ Drop targets with different dropEffects:
+
link
+
+
+
+
+
diff --git a/html/editing/dnd/drop/032.html b/html/editing/dnd/drop/032.html
new file mode 100644
index 00000000000000..debf848b53f769
--- /dev/null
+++ b/html/editing/dnd/drop/032.html
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+
+
+
+ Test all effectAllowed against move dropEffect on drop
+
+
+
+
+ These are the draggable elements with different effectAllowed
+ settings:
+
+
+ Drop targets with different dropEffects:
+
move
+
+
+
+
+
diff --git a/html/editing/dnd/drop/033.html b/html/editing/dnd/drop/033.html
new file mode 100644
index 00000000000000..c71860abc3763b
--- /dev/null
+++ b/html/editing/dnd/drop/033.html
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+
+
+
+ Test all effectAllowed against dummy dropEffect on drop
+
+
+
+
+ These are the draggable elements with different effectAllowed
+ settings:
+
+
+ Drop targets with different dropEffects:
+
dummy
+
+
+
+
+
diff --git a/html/editing/dnd/drop/034.html b/html/editing/dnd/drop/034.html
new file mode 100644
index 00000000000000..e6333dd4fc511b
--- /dev/null
+++ b/html/editing/dnd/drop/034.html
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+
+
+
+ Test all effectAllowed against none dropEffect on dragEnd
+
+
+
+
+ These are the draggable elements with different effectAllowed
+ settings:
+
+
+ Drop targets with different dropEffects:
+
none
+
+
+
+
+
diff --git a/html/editing/dnd/drop/035.html b/html/editing/dnd/drop/035.html
new file mode 100644
index 00000000000000..020ab36edf0e14
--- /dev/null
+++ b/html/editing/dnd/drop/035.html
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+
+
+
+ Test all effectAllowed against copy dropEffect on dragEnd
+
+
+
+
+ These are the draggable elements with different effectAllowed
+ settings:
+
+
+ Drop targets with different dropEffects:
+
copy
+
+
+
+
+