Index: content/test/gpu/gpu_tests/test_expectations.py |
diff --git a/content/test/gpu/gpu_tests/test_expectations.py b/content/test/gpu/gpu_tests/test_expectations.py |
index 501ee005664b2919c5a0f996c59cf0c8a2fc2004..9879e9f794cad64e8165ac48b09d8b4ed3681711 100644 |
--- a/content/test/gpu/gpu_tests/test_expectations.py |
+++ b/content/test/gpu/gpu_tests/test_expectations.py |
@@ -165,6 +165,11 @@ class TestExpectations(object): |
# assume that. |
if (url_path and url_path[0] == '/'): |
url_path = url_path[1:] |
+ # Python's urlsplit doesn't seem to handle query arguments for |
+ # file:// URLs properly. Split them off manually. |
+ query_index = url_path.find('?') |
+ if query_index > 0: |
+ url_path = url_path[0:query_index] |
return url_path |
def _GetExpectationObjectForPage(self, browser, page): |