Reverting r42321 because it broke some layout tests.
[WebKit-https.git] / LayoutTests / plugins / mouse-events.html
index d61ce0c..2582c19 100644 (file)
@@ -9,21 +9,20 @@ Flash clicks/interactivity not working properly.</p>
 
     if (!window.layoutTestController) {
         document.write("This test does not work in manual mode.");
-        return;
+    } else {
+        layoutTestController.dumpAsText();
+        
+        eventSender.mouseMoveTo(0,0);
+        eventSender.mouseMoveTo(20,20);
+        eventSender.mouseDown();
+        eventSender.mouseUp();
+        eventSender.mouseMoveTo(30,30);
+        eventSender.mouseDown();
+        eventSender.mouseMoveTo(40,30);
+        eventSender.mouseUp();
+        eventSender.mouseMoveTo(0,0);
     }
 
-    layoutTestController.dumpAsText();
-    
-    eventSender.mouseMoveTo(0,0);
-    eventSender.mouseMoveTo(20,20);
-    eventSender.mouseDown();
-    eventSender.mouseUp();
-    eventSender.mouseMoveTo(30,30);
-    eventSender.mouseDown();
-    eventSender.mouseMoveTo(40,30);
-    eventSender.mouseUp();
-    eventSender.mouseMoveTo(0,0);
-
     plg.eventLoggingEnabled = false; // stop logging so our output doesn't bleed into the next test
 
 </script>