Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Unified Diff: third_party/WebKit/LayoutTests/fast/events/drag-dragend-detaches.html

Issue 2759603002: Check detached status before attempting to clear drag transfer state (reland.) (Closed)
Patch Set: rebased upto r458127 Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/events/drag-dragend-detaches-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/events/drag-dragend-detaches-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698