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

Unified Diff: LayoutTests/editing/pasteboard/drag-drop-iframe-refresh-crash.html

Issue 1706021: Merge 58616 - WebCore: Convert m_documentUnderMouse, m_dragInitiator to RefPt... (Closed) Base URL: svn://chrome-svn/chrome/branches/WebKit/375/
Patch Set: Created 10 years, 8 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 | « LayoutTests/ChangeLog ('k') | LayoutTests/editing/pasteboard/drag-drop-iframe-refresh-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/pasteboard/drag-drop-iframe-refresh-crash.html
===================================================================
--- LayoutTests/editing/pasteboard/drag-drop-iframe-refresh-crash.html (revision 0)
+++ LayoutTests/editing/pasteboard/drag-drop-iframe-refresh-crash.html (revision 46184)
@@ -0,0 +1,58 @@
+<html>
+<head>
+<script>
+if (window.layoutTestController) {
+ layoutTestController.waitUntilDone();
+ layoutTestController.dumpAsText();
+}
+
+function log(message) {
+ var console = document.getElementById("console");
+ var li = document.createElement("li");
+ var text = document.createTextNode(message);
+
+ console.appendChild(li);
+ li.appendChild(text);
+}
+
+function runTest() {
+
+ var doc = window.frames[0].document;
+ e = doc.getElementById("dragme");
+ xdrag = e.offsetLeft + e.offsetWidth / 2;
+ ydrag = e.offsetTop + e.offsetHeight / 2;
+ e = doc.getElementById("target");
+ xdrop = e.offsetLeft + e.offsetWidth / 2;
+ ydrop = e.offsetTop + e.offsetHeight / 2;
+
+ var timer = setInterval(function() {
+ window.frames[0].location = "../resources/drag-drop.html";
+ }, 100);
+
+ if (!window.layoutTestController) {
+ log("This test uses eventSender. To run it manually, drag the selected image to another position in the editable div and drop it. Renderer should not crash.");
+ return;
+ }
+
+ var max_tries = 50;
+ for (i = 0; i < max_tries; i++) {
+ eventSender.mouseMoveTo(xdrag, ydrag);
+ eventSender.mouseDown();
+ eventSender.mouseMoveTo(xdrop, ydrop);
+ eventSender.mouseUp();
+ }
+
+ clearInterval(timer);
+
+ document.write("<p>Bug 37618: Crash when an image drag-drop operation happens inside a continuously refreshing iframe.</p>");
+ document.write("<p>SUCCESS</p>");
+
+ layoutTestController.notifyDone();
+}
+</script>
+</head>
+<body onload="runTest()">
+<iframe src="../resources/drag-drop.html"></iframe>
+<ul id="console"></ul>
+</body>
+</html>
« no previous file with comments | « LayoutTests/ChangeLog ('k') | LayoutTests/editing/pasteboard/drag-drop-iframe-refresh-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698