Title: [119457] trunk/Tools
Revision
119457
Author
[email protected]
Date
2012-06-04 21:49:54 -0700 (Mon, 04 Jun 2012)

Log Message

Python test fix attempt for Chromium Windows.

* Scripts/webkitpy/layout_tests/port/driver.py:
(Driver.uri_to_test):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (119456 => 119457)


--- trunk/Tools/ChangeLog	2012-06-05 04:42:55 UTC (rev 119456)
+++ trunk/Tools/ChangeLog	2012-06-05 04:49:54 UTC (rev 119457)
@@ -1,3 +1,10 @@
+2012-06-04  Ryosuke Niwa  <[email protected]>
+
+        Python test fix attempt for Chromium Windows.
+
+        * Scripts/webkitpy/layout_tests/port/driver.py:
+        (Driver.uri_to_test):
+
 2012-06-04  Hugo Parente Lima  <[email protected]>
 
         Turn LEGACY_VIEWPORT_ADAPTION USE flag into an ENABLE flag.

Modified: trunk/Tools/Scripts/webkitpy/layout_tests/port/driver.py (119456 => 119457)


--- trunk/Tools/Scripts/webkitpy/layout_tests/port/driver.py	2012-06-05 04:42:55 UTC (rev 119456)
+++ trunk/Tools/Scripts/webkitpy/layout_tests/port/driver.py	2012-06-05 04:49:54 UTC (rev 119457)
@@ -150,7 +150,10 @@
 
         """
         if uri.startswith("file:///"):
-            return uri[len(path.abspath_to_uri(self._port.layout_tests_dir()) + "/"):]
+            prefix = path.abspath_to_uri(self._port.layout_tests_dir())
+            if not prefix.endswith('/'):
+                prefix += '/'
+            return uri[len(prefix):]
         if uri.startswith("http://"):
             return uri.replace('http://127.0.0.1:8000/', self.HTTP_DIR)
         if uri.startswith("https://"):
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to