Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Unified Diff: webkit/tools/layout_tests/run_webkit_tests.py

Issue 13159: Add fuzzy image matching tool for Linux pixel tests (Closed)
Patch Set: Add license block Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/tools/layout_tests/layout_package/test_failures.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/layout_tests/run_webkit_tests.py
diff --git a/webkit/tools/layout_tests/run_webkit_tests.py b/webkit/tools/layout_tests/run_webkit_tests.py
index 12eaf088aed1354ed8e89fe5dec1c89932fc52be..2ea3ab8f704ec2f92777272be2d949bc7acd488e 100755
--- a/webkit/tools/layout_tests/run_webkit_tests.py
+++ b/webkit/tools/layout_tests/run_webkit_tests.py
@@ -39,6 +39,7 @@ from layout_package import http_server
from layout_package import path_utils
from layout_package import test_failures
from layout_package import test_shell_thread
+from test_types import fuzzy_image_diff
from test_types import image_diff
from test_types import test_type_base
from test_types import text_diff
@@ -598,6 +599,8 @@ def main(options, args):
test_runner.AddTestType(simplified_text_diff.SimplifiedTextDiff)
if not options.no_pixel_tests:
test_runner.AddTestType(image_diff.ImageDiff)
+ if options.fuzzy_pixel_tests:
+ test_runner.AddTestType(fuzzy_image_diff.FuzzyImageDiff)
has_new_failures = test_runner.Run()
logging.info("Exit status: %d" % has_new_failures)
sys.exit(has_new_failures)
@@ -607,6 +610,10 @@ if '__main__' == __name__:
option_parser.add_option("", "--no-pixel-tests", action="store_true",
default=False,
help="disable pixel-to-pixel PNG comparisons")
+ option_parser.add_option("", "--fuzzy-pixel-tests", action="store_true",
+ default=False,
+ help="Also use fuzzy matching to compare pixel test "
+ "outputs.")
option_parser.add_option("", "--wdiff", action="store_true",
default=False,
help="enable word-by-word diffing")
« no previous file with comments | « webkit/tools/layout_tests/layout_package/test_failures.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698