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

Unified Diff: webkit/tools/layout_tests/test_types/simplified_text_diff.py

Issue 10926: Place all new baseline files in the most specific platform directory.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 1 month 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
Index: webkit/tools/layout_tests/test_types/simplified_text_diff.py
===================================================================
--- webkit/tools/layout_tests/test_types/simplified_text_diff.py (revision 5432)
+++ webkit/tools/layout_tests/test_types/simplified_text_diff.py (working copy)
@@ -83,7 +83,7 @@
return text
- def CompareOutput(self, filename, proc, output, unused_test_args):
+ def CompareOutput(self, filename, proc, output, test_args):
"""Implementation of CompareOutput that removes most numbers before
computing the diff.
@@ -92,6 +92,10 @@
"""
failures = []
+ # If we're generating a new baseline, we pass.
+ if test_args.new_baseline:
+ return failures
+
# Normalize text to diff
output = self.GetNormalizedOutputText(output)
# The full text diff already gave the result file if requested, so we'll

Powered by Google App Engine
This is Rietveld 408576698