summaryrefslogtreecommitdiffstats
path: root/Tools/Scripts/webkitpy/layout_tests/port/dryrun.py
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2011-05-25 19:08:45 +0100
committerSteve Block <steveblock@google.com>2011-06-08 13:51:31 +0100
commit2bde8e466a4451c7319e3a072d118917957d6554 (patch)
tree28f4a1b869a513e565c7760d0e6a06e7cf1fe95a /Tools/Scripts/webkitpy/layout_tests/port/dryrun.py
parent6939c99b71d9372d14a0c74a772108052e8c48c8 (diff)
downloadexternal_webkit-2bde8e466a4451c7319e3a072d118917957d6554.zip
external_webkit-2bde8e466a4451c7319e3a072d118917957d6554.tar.gz
external_webkit-2bde8e466a4451c7319e3a072d118917957d6554.tar.bz2
Merge WebKit at r82507: Initial merge by git
Change-Id: I60ce9d780725b58b45e54165733a8ffee23b683e
Diffstat (limited to 'Tools/Scripts/webkitpy/layout_tests/port/dryrun.py')
-rw-r--r--Tools/Scripts/webkitpy/layout_tests/port/dryrun.py20
1 files changed, 17 insertions, 3 deletions
diff --git a/Tools/Scripts/webkitpy/layout_tests/port/dryrun.py b/Tools/Scripts/webkitpy/layout_tests/port/dryrun.py
index 6b3bd51..20aa776 100644
--- a/Tools/Scripts/webkitpy/layout_tests/port/dryrun.py
+++ b/Tools/Scripts/webkitpy/layout_tests/port/dryrun.py
@@ -118,12 +118,26 @@ class DryrunDriver(base.Driver):
def run_test(self, driver_input):
start_time = time.time()
- text_output = self._port.expected_text(driver_input.filename)
-
- if driver_input.image_hash is not None:
+ fs = self._port._filesystem
+ if fs.exists(self._port.reftest_expected_filename(driver_input.filename)) or \
+ fs.exists(self._port.reftest_expected_mismatch_filename(driver_input.filename)):
+ text_output = 'test-text'
+ image = 'test-image'
+ hash = 'test-checksum'
+ elif driver_input.filename.endswith('-expected.html'):
+ text_output = 'test-text'
+ image = 'test-image'
+ hash = 'test-checksum'
+ elif driver_input.filename.endswith('-expected-mismatch.html'):
+ text_output = 'test-text-mismatch'
+ image = 'test-image-mismatch'
+ hash = 'test-checksum-mismatch'
+ elif driver_input.image_hash is not None:
+ text_output = self._port.expected_text(driver_input.filename)
image = self._port.expected_image(driver_input.filename)
hash = self._port.expected_checksum(driver_input.filename)
else:
+ text_output = self._port.expected_text(driver_input.filename)
image = None
hash = None
return base.DriverOutput(text_output, image, hash, False,