OLD | NEW |
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 Loading... |
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" |
OLD | NEW |