Title: [110530] trunk/LayoutTests
Revision
110530
Author
[email protected]
Date
2012-03-12 19:29:12 -0700 (Mon, 12 Mar 2012)

Log Message

Fix assert seen in DRT due to not calling EventSender.mouseUp in a previous test
https://bugs.webkit.org/show_bug.cgi?id=80925

Reviewed by Maciej Stachowiak.

* fast/events/input-element-display-none-in-dragleave-crash.html:
Add call to eventSender.mouseUp().

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (110529 => 110530)


--- trunk/LayoutTests/ChangeLog	2012-03-13 02:27:21 UTC (rev 110529)
+++ trunk/LayoutTests/ChangeLog	2012-03-13 02:29:12 UTC (rev 110530)
@@ -1,3 +1,13 @@
+2012-03-12  Sam Weinig  <[email protected]>
+
+        Fix assert seen in DRT due to not calling EventSender.mouseUp in a previous test
+        https://bugs.webkit.org/show_bug.cgi?id=80925
+
+        Reviewed by Maciej Stachowiak.
+
+        * fast/events/input-element-display-none-in-dragleave-crash.html:
+        Add call to eventSender.mouseUp().
+
 2012-03-12  Zhenyao Mo  <[email protected]>
 
         After webgl canvas resize, bindings might be lost

Modified: trunk/LayoutTests/fast/events/input-element-display-none-in-dragleave-crash.html (110529 => 110530)


--- trunk/LayoutTests/fast/events/input-element-display-none-in-dragleave-crash.html	2012-03-13 02:27:21 UTC (rev 110529)
+++ trunk/LayoutTests/fast/events/input-element-display-none-in-dragleave-crash.html	2012-03-13 02:29:12 UTC (rev 110530)
@@ -20,6 +20,14 @@
                 var y = dropTarget.offsetTop + dropTarget.offsetHeight / 2;
                 eventSender.mouseMoveTo(x, y);
                 eventSender.mouseMoveTo(0, 0);
+
+                // The test harness wants us to call eventSender.mouseUp() before finishing,
+                // but we need to not navigate when that happens, so add a drop handler that
+                // prevents navigation.
+                window.addEventListener("drop", function() {
+                  event.preventDefault();
+                }, false);
+                eventSender.mouseUp();
             }
             
             if (window.layoutTestController)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to