| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 from common import chromium_deps | 5 from common import chromium_deps |
| 6 from common.dependency import DependencyRoll | 6 from common.dependency import DependencyRoll |
| 7 from crash import detect_regression_range | 7 from crash import detect_regression_range |
| 8 from crash import findit_for_chromecrash | 8 from crash import findit_for_chromecrash |
| 9 from crash import chromecrash_parser | 9 from crash import chromecrash_parser |
| 10 from crash import findit_for_crash | 10 from crash import findit_for_crash |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 expected_tag = { | 117 expected_tag = { |
| 118 'found_suspects': False, | 118 'found_suspects': False, |
| 119 'found_project': False, | 119 'found_project': False, |
| 120 'found_components': False, | 120 'found_components': False, |
| 121 'has_regression_range': False, | 121 'has_regression_range': False, |
| 122 'solution': 'core_algorithm', | 122 'solution': 'core_algorithm', |
| 123 } | 123 } |
| 124 | 124 |
| 125 self.assertEqual(expected_results, results) | 125 self.assertEqual(expected_results, results) |
| 126 self.assertEqual(expected_tag, tag) | 126 self.assertEqual(expected_tag, tag) |
| 127 |
| 128 def testFieldsProperty(self): |
| 129 culprit = findit_for_chromecrash.Culprit('proj', ['Blink>API'], [], |
| 130 ['50.0.1234.0', '50.0.1234.1']) |
| 131 self.assertEqual(culprit.fields, |
| 132 ('project', 'components', 'cls', 'regression_range')) |
| OLD | NEW |