Index: third_party/WebKit/LayoutTests/fast/events/drag-dragend-detaches.html |
diff --git a/third_party/WebKit/LayoutTests/fast/events/drag-dragend-detaches.html b/third_party/WebKit/LayoutTests/fast/events/drag-dragend-detaches.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2d85fc8f7d1e06195181a923795346c3a7a21af0 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/events/drag-dragend-detaches.html |
@@ -0,0 +1,31 @@ |
+<!doctype html> |
+<html> |
+<body> |
+<iframe src="resources/iframe-drag-dragend-detaches.html"></iframe> |
+<script> |
+function updateResult(msg) { |
+ document.getElementById('results').innerHTML = msg; |
+} |
+ |
+function test() { |
+ updateResult('Test failed.'); |
+ |
+ testRunner.dumpAsText(); |
+ testRunner.waitUntilDone(); |
+ |
+ var ifr = document.querySelector("iframe"); |
+ ifr.contentWindow.test(ifr.offsetLeft, ifr.offsetTop); |
+} |
+ |
+function finishUp() { |
+ updateResult('Test passed (no crash.)'); |
+ document.querySelector("iframe").remove(); |
+ // This will detach the iframe, verifying in the process |
+ // if the tail end of the drag operation handles that as |
+ // wanted (== gracefully, no crashing.) |
+} |
+window.onload = test; |
+</script> |
+<div id="results"></div> |
+</body> |
+</html> |