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

Unified Diff: LayoutTests/fast/events/drag-leak-document.html

Issue 302133002: Fix a document memory leak in drag-and-drop. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ready Created 6 years, 7 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 | LayoutTests/fast/events/drag-leak-document-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/events/drag-leak-document.html
diff --git a/LayoutTests/fast/events/drag-leak-document.html b/LayoutTests/fast/events/drag-leak-document.html
new file mode 100644
index 0000000000000000000000000000000000000000..e79857fe3cdc15a7305dcdf8ee89d2bd036ac308
--- /dev/null
+++ b/LayoutTests/fast/events/drag-leak-document.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
haraken 2014/06/02 02:24:17 Nit: We normally write a <script> tag in <body>.
Dai Mikurube (NOT FULLTIME) 2014/06/02 03:11:51 Done.
+if (window.testRunner) {
+ testRunner.waitUntilDone();
haraken 2014/06/02 02:24:17 This test doesn't need to be async, so waitUntilDo
Dai Mikurube (NOT FULLTIME) 2014/06/02 03:11:51 Done.
+ testRunner.dumpAsText();
+}
+function runTest() {
+ var draggedElement = document.getElementById('draggedElement');
+ var x = draggedElement.offsetLeft + draggedElement.offsetWidth / 2;
+ var y = draggedElement.offsetTop + draggedElement.offsetHeight / 2;
+
+ eventSender.mouseMoveTo(x, y);
+ eventSender.mouseDown();
+ eventSender.mouseMoveTo(x + 100, y + 100);
+ eventSender.mouseUp();
+ testRunner.notifyDone();
haraken 2014/06/02 02:24:17 Remove this.
Dai Mikurube (NOT FULLTIME) 2014/06/02 03:11:51 Done.
+}
+</script>
+</head>
+<body onload="runTest()">
+<div id="draggedElement" draggable="true">Drag</div>
+<p>PASS if no leak is detected by the leak detector.</p>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/events/drag-leak-document-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698