Bug 1297049 - Include tests with query string and hash string when specifying test path. r?dbaron
MozReview-Commit-ID: 27x0vTs1aDa
--- a/layout/tools/reftest/runreftest.py
+++ b/layout/tools/reftest/runreftest.py
@@ -169,17 +169,17 @@ class ReftestResolver(object):
while not os.path.exists(os.path.join(dirname, default_manifest)):
dirname, suffix = os.path.split(dirname)
pathname = os.path.join(suffix, pathname)
if os.path.dirname(dirname) == dirname:
found = False
break
if found:
rv = [(os.path.join(dirname, default_manifest),
- r".*(?:/|\\)%s$" % pathname)]
+ r".*(?:/|\\)%s(?:[#?].*)?$" % pathname)]
return rv
def absManifestPath(self, path):
return os.path.normpath(os.path.abspath(path))
def manifestURL(self, options, path):
return "file://%s" % path