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

Side by Side Diff: webkit/tools/layout_tests/layout_package/test_failures.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 unified diff | Download patch
« no previous file with comments | « third_party/fuzzymatch/fuzzymatch.c ('k') | webkit/tools/layout_tests/run_webkit_tests.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Classes for failures that occur during tests.""" 5 """Classes for failures that occur during tests."""
6 6
7 import path_utils 7 import path_utils
8 8
9 class FailureSort(object): 9 class FailureSort(object):
10 """A repository for failure sort orders and tool to facilitate sorting.""" 10 """A repository for failure sort orders and tool to facilitate sorting."""
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 class FailureImageHashMismatch(FailureWithType): 195 class FailureImageHashMismatch(FailureWithType):
196 """Image hashes didn't match.""" 196 """Image hashes didn't match."""
197 OUT_FILENAMES = ["-actual-win.png", "-expected.png"] 197 OUT_FILENAMES = ["-actual-win.png", "-expected.png"]
198 198
199 @staticmethod 199 @staticmethod
200 def Message(): 200 def Message():
201 # We call this a simple image mismatch to avoid confusion, since we link 201 # We call this a simple image mismatch to avoid confusion, since we link
202 # to the PNGs rather than the checksums. 202 # to the PNGs rather than the checksums.
203 return "Image mismatch" 203 return "Image mismatch"
204 204
205 class FailureFuzzyFailure(FailureWithType):
206 """Image hashes didn't match."""
207 OUT_FILENAMES = ["-actual-win.png", "-expected.png"]
208
209 @staticmethod
210 def Message():
211 return "Fuzzy image match also failed"
OLDNEW
« no previous file with comments | « third_party/fuzzymatch/fuzzymatch.c ('k') | webkit/tools/layout_tests/run_webkit_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698