OLD | NEW |
1 # Copyright (c) 2010, Google Inc. All rights reserved. | 1 # Copyright (c) 2010, Google Inc. All rights reserved. |
2 # | 2 # |
3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
5 # met: | 5 # met: |
6 # | 6 # |
7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
10 # copyright notice, this list of conditions and the following disclaimer | 10 # copyright notice, this list of conditions and the following disclaimer |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 def add_if_passes(result): | 153 def add_if_passes(result): |
154 if result_filter(result): | 154 if result_filter(result): |
155 results.append(result) | 155 results.append(result) |
156 | 156 |
157 LayoutTestResults._for_each_test(self._test_result_tree(), add_if_passes
) | 157 LayoutTestResults._for_each_test(self._test_result_tree(), add_if_passes
) |
158 return sorted(results, key=lambda r: r.test_name()) | 158 return sorted(results, key=lambda r: r.test_name()) |
159 | 159 |
160 def didnt_run_as_expected_results(self): | 160 def didnt_run_as_expected_results(self): |
161 # TODO(qyearsley): Rename this method. | 161 # TODO(qyearsley): Rename this method. |
162 return self._filter_tests(lambda r: not r.did_run_as_expected()) | 162 return self._filter_tests(lambda r: not r.did_run_as_expected()) |
OLD | NEW |