Reviewed by Adele.
authorkmccullough@apple.com <kmccullough@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 7 Jan 2008 23:36:44 +0000 (23:36 +0000)
committerkmccullough@apple.com <kmccullough@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 7 Jan 2008 23:36:44 +0000 (23:36 +0000)
        - <rdar://problem/5667022> fast/events/mousemove-after-drag-over-scrollbar.html
        failing (missing a mousemove event)
        - Updated test to reflect it's original intention and filed a different
        bug about the issue that caused the test to fail on Windows.

        * fast/events/mousemove-after-drag-over-scrollbar-expected.txt:
        * fast/events/mousemove-after-drag-over-scrollbar.html:
        * platform/win/Skipped:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@29251 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/fast/events/mousemove-after-drag-over-scrollbar-expected.txt
LayoutTests/fast/events/mousemove-after-drag-over-scrollbar.html
LayoutTests/platform/win/Skipped

index 0d4c6b62626b6a6a02b9349ff4869d96e2c9e8fe..2fe83e717a7bf4222b8824ceeeafcb3e05bd974a 100644 (file)
@@ -1,3 +1,16 @@
+2008-01-07  Kevin McCullough  <kmccullough@apple.com>
+
+        Reviewed by Adele.
+
+        - <rdar://problem/5667022> fast/events/mousemove-after-drag-over-scrollbar.html
+        failing (missing a mousemove event)
+        - Updated test to reflect it's original intention and filed a different
+        bug about the issue that caused the test to fail on Windows.
+
+        * fast/events/mousemove-after-drag-over-scrollbar-expected.txt:
+        * fast/events/mousemove-after-drag-over-scrollbar.html:
+        * platform/win/Skipped:
+
 2008-01-07  Nikolas Zimmermann  <zimmermann@kde.org>
 
         Reviewed by Oliver.
index cb08b15ef7c91363aaf1a08631f940b82c9c2eef..db3dcd0f647454d896641e2481fd6ea33507f8d8 100644 (file)
@@ -1,8 +1,5 @@
 This tests that we continue to get mouse events after dragging past a scrollbar.
 Start a drag in this square, and drag past the scrollbar to the green square. Start a drag in this square, and drag past the scrollbar to the green square.  
 
-mousemove - box 1
-mousemove - box 1
-mousemove - box 2
-mousemove - box 2
+Test Succeeded!
 
index 4ed01ed296004940cc14de7ff41cde3747e554e6..5e937cf6644ad243a7ef9788cbd030bdf8c5ca64 100644 (file)
@@ -1,6 +1,9 @@
 <html>
     <head>
         <script>
+            var box1Sum = 0;
+            var box2Sum = 0;
+
             function test()
             {
                 if (window.layoutTestController) {
                     eventSender.dragMode = false;
                     var left = d1.offsetLeft + 10;
                     var top = d1.offsetTop + 10;
-                    
                     eventSender.mouseMoveTo(left, top);
                     eventSender.mouseDown();
                     left = d2.offsetLeft - 10;
                     eventSender.mouseMoveTo(left, top);
                     left += 20;
                     eventSender.mouseMoveTo(left, top);
+                    eventSender.mouseMoveTo(left++, top);
+                    eventSender.mouseMoveTo(left++, top);
+                    eventSender.mouseMoveTo(left++, top);
+                    eventSender.mouseMoveTo(left++, top);
+                    eventSender.mouseMoveTo(left++, top);
+                    eventSender.mouseMoveTo(left++, top);
                     eventSender.mouseUp();
+
+                    // We do not count mouse moves since Mac records a move for the mouseUp event and Windows does not
+                    // See <rdar://problem/5674087> mouseUp events send onmousemove events on Mac but not on Windows.
+                    if ((box1Sum == 2) && (box2Sum > 2))
+                        document.getElementById('console').appendChild(document.createTextNode('Test Succeeded!\n'));
+                    else
+                        document.getElementById('console').appendChild(document.createTextNode('Test Failed!\n'));
                 }
             }
-                        
-            function log(msg)
+
+            function record(box)
             {
-                document.getElementById('console').appendChild(document.createTextNode(msg + '\n'));
+                if (box == 1)
+                    box1Sum++;
+                else if (box == 2)
+                    box2Sum++;
             }
         </script>
     </head>
     <body onload="test()">
     This tests that we continue to get mouse events after dragging past a scrollbar.<br>
-    <div id="d1" style="height:120px; width:120px; overflow: auto; display: inline-block; background-color: red;" onmousemove="log('mousemove - box 1')">Start a drag in this square, and drag past the scrollbar to the green square.  Start a drag in this square, and drag past the scrollbar to the green square.  </div>
-    <div id="d2" style="height:120px; width:120px; display: inline-block; background-color: green;" onmousemove="log('mousemove - box 2')"></div><br><br>
+    <div id="d1" style="height:120px; width:120px; overflow: auto; display: inline-block; background-color: red;" onmousemove="record(1)">Start a drag in this square, and drag past the scrollbar to the green square.  Start a drag in this square, and drag past the scrollbar to the green square.  </div>
+    <div id="d2" style="height:120px; width:120px; display: inline-block; background-color: green;" onmousemove="record(2)"></div><br><br>
     <pre id="console"></pre>
     </body>
 </html>
index e7f5087d6f578ba93f34bdb607fbc2b62a66a9df..f76db273dfc95c53b0da031d362163bf1b4f746a 100644 (file)
@@ -371,9 +371,6 @@ fast/dom/xmlhttprequest-html-response-encoding.html
 svg/batik/text/textOnPath.svg
 svg/batik/text/verticalTextOnPath.svg
 
-# <rdar://5667022> Missing a mousemove event
-fast/events/mousemove-after-drag-over-scrollbar.html
-
 # <rdar://5667259>
 editing/pasteboard/drag-image-in-about-blank-frame.html