Title: [90306] trunk/LayoutTests
Revision
90306
Author
[email protected]
Date
2011-07-01 17:55:59 -0700 (Fri, 01 Jul 2011)

Log Message

2011-07-01  Kent Tamura  <[email protected]>

        Reviewed by Tony Chang.

        Use common functions in fast/forms/search-rtl.html
        https://bugs.webkit.org/show_bug.cgi?id=63787

        * fast/forms/search-rtl.html: Use searchCancelButtonPosition() to make
          this work on Chromium Windows and Chromium Linux.
        * platform/chromium/test_expectations.txt:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (90305 => 90306)


--- trunk/LayoutTests/ChangeLog	2011-07-02 00:45:09 UTC (rev 90305)
+++ trunk/LayoutTests/ChangeLog	2011-07-02 00:55:59 UTC (rev 90306)
@@ -1,3 +1,14 @@
+2011-07-01  Kent Tamura  <[email protected]>
+
+        Reviewed by Tony Chang.
+
+        Use common functions in fast/forms/search-rtl.html
+        https://bugs.webkit.org/show_bug.cgi?id=63787
+
+        * fast/forms/search-rtl.html: Use searchCancelButtonPosition() to make
+          this work on Chromium Windows and Chromium Linux.
+        * platform/chromium/test_expectations.txt:
+
 2011-07-01  Sam Weinig  <[email protected]>
 
         Reduce parser nesting cap to 512

Modified: trunk/LayoutTests/fast/forms/search-rtl.html (90305 => 90306)


--- trunk/LayoutTests/fast/forms/search-rtl.html	2011-07-02 00:45:09 UTC (rev 90305)
+++ trunk/LayoutTests/fast/forms/search-rtl.html	2011-07-02 00:55:59 UTC (rev 90306)
@@ -1,6 +1,7 @@
 <html>
 <head>
     <meta http-equiv="content-type" content="text/html; charset=UTF-8">
+    <script src=""
     <title></title>
 </head>
 <body>
@@ -20,13 +21,12 @@
     </p>
     <script>
         if (window.eventSender) {
-            var target = document.getElementById("target");
-            var x = target.offsetLeft + target.offsetWidth - 6;
-            var y = target.offsetTop + target.offsetHeight / 2;
-            eventSender.mouseMoveTo(x, y);
+            var target = $("target");
+            var pos = searchCancelButtonPosition(target);
+            eventSender.mouseMoveTo(pos.x, pos.y);
             eventSender.mouseDown();
             eventSender.mouseUp();
-            var result = document.getElementById("result");
+            var result = $("result");
             if (target.value == "")
                 result.innerText = "PASS";
             else

Modified: trunk/LayoutTests/platform/chromium/test_expectations.txt (90305 => 90306)


--- trunk/LayoutTests/platform/chromium/test_expectations.txt	2011-07-02 00:45:09 UTC (rev 90305)
+++ trunk/LayoutTests/platform/chromium/test_expectations.txt	2011-07-02 00:55:59 UTC (rev 90306)
@@ -3745,7 +3745,7 @@
 BUGWK60931 DEBUG :  http/tests/security/_javascript_URL/xss-ALLOWED-from-_javascript_-url-window-open.html = CRASH
 BUGWK60931 DEBUG :  http/tests/security/_javascript_URL/xss-ALLOWED-to-_javascript_-url-window-open.html = CRASH
 
-BUGWK61415 WIN LINUX : fast/forms/search-rtl.html = IMAGE+TEXT IMAGE
+BUGWK63787 WIN LINUX : fast/forms/search-rtl.html = IMAGE+TEXT IMAGE
 
 // Flaky since added by r86478
 BUGCR82881 : http/tests/appcache/interrupted-update.html = PASS TEXT
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to