fast/events/drop-handler-should-not-stop-navigate.html fails on Lion
authordcheng@chromium.org <dcheng@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Apr 2012 00:25:34 +0000 (00:25 +0000)
committerdcheng@chromium.org <dcheng@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Apr 2012 00:25:34 +0000 (00:25 +0000)
https://bugs.webkit.org/show_bug.cgi?id=82984

Reviewed by Enrica Casucci.

* fast/events/drop-handler-should-not-stop-navigate.html:
* platform/mac/Skipped:

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

LayoutTests/ChangeLog
LayoutTests/fast/events/drop-handler-should-not-stop-navigate.html
LayoutTests/platform/mac/Skipped

index c330a62..dde9d4e 100644 (file)
@@ -1,3 +1,13 @@
+2012-04-02  Daniel Cheng  <dcheng@chromium.org>
+
+        fast/events/drop-handler-should-not-stop-navigate.html fails on Lion
+        https://bugs.webkit.org/show_bug.cgi?id=82984
+
+        Reviewed by Enrica Casucci.
+
+        * fast/events/drop-handler-should-not-stop-navigate.html:
+        * platform/mac/Skipped:
+
 2012-04-02  Tony Chang  <tony@chromium.org>
 
         add css parsing of -webkit-flex
index 397fec9..9b5889d 100644 (file)
@@ -11,8 +11,6 @@ function log(text)
     document.body.appendChild(document.createElement('br'));
     document.body.appendChild(document.createElement('div').appendChild(document.createTextNode(text)));
 }
-if (!window.layoutTestController)
-    return;
 window.addEventListener('beforeunload', function ()
 {
     log('PASS');
@@ -32,14 +30,19 @@ document.body.addEventListener('drop', function (event)
 {
     log('Not preventing default event on drop.');
 });
-layoutTestController.dumpAsText();
-layoutTestController.waitUntilDone();
-log('Starting test');
-eventSender.beginDragWithFiles(['DRTFakeFile']);
-eventSender.mouseMoveTo(document.body.offsetLeft + 10, document.body.offsetTop + 10);
-eventSender.mouseUp();
-log('FAIL');
-layoutTestController.notifyDone();
+(function ()
+{
+    if (!window.layoutTestController)
+        return;
+    layoutTestController.dumpAsText();
+    layoutTestController.waitUntilDone();
+    log('Starting test');
+    eventSender.beginDragWithFiles(['DRTFakeFile']);
+    eventSender.mouseMoveTo(document.body.offsetLeft + 10, document.body.offsetTop + 10);
+    eventSender.mouseUp();
+    log('FAIL');
+    layoutTestController.notifyDone();
+})();
 </script>
 </body>
 </html>
index 506a04a..931318c 100644 (file)
@@ -768,6 +768,3 @@ http/tests/misc/favicon-loads-with-icon-loading-override.html
 
 # https://bugs.webkit.org/show_bug.cgi?id=82982
 fast/dom/jsDevicePixelRatio.html
-
-# https://bugs.webkit.org/show_bug.cgi?id=82984
-fast/events/drop-handler-should-not-stop-navigate.html