Index: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py |
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py |
index d4f23c97edff3740910097040dc7ee8b82df47fb..f999f5c9c19125cc61b0e1f10492326fa28b2d1f 100644 |
--- a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py |
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py |
@@ -235,6 +235,15 @@ def parse_args(args): |
dest='smoke', |
action='store_false', |
help='Do not run just the SmokeTests'), |
+ optparse.make_option( |
+ '--image-first-tests', |
+ action='append', |
+ default=[], |
+ dest='image_first_tests', |
+ help=('A directory (or test) where the test result will only be compared with the ' |
+ 'image baseline if an image baseline is available, and fall back to comparison ' |
+ 'with the text baseline when image baselines are missing. Specify multiple times ' |
+ 'to add multiple directories/tests.')), |
])) |
option_group_definitions.append( |