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 import optparse | 5 import optparse |
6 | 6 |
7 from webkitpy.common.checkout.baselineoptimizer import BaselineOptimizer | 7 from webkitpy.common.checkout.baseline_optimizer import BaselineOptimizer |
8 from webkitpy.tool.commands.analyze_baselines import AnalyzeBaselines | 8 from webkitpy.tool.commands.analyze_baselines import AnalyzeBaselines |
9 from webkitpy.tool.commands.rebaseline_unittest import BaseTestCase | 9 from webkitpy.tool.commands.rebaseline_unittest import BaseTestCase |
10 | 10 |
11 | 11 |
12 class _FakeOptimizer(BaselineOptimizer): | 12 class _FakeOptimizer(BaselineOptimizer): |
13 | 13 |
14 def read_results_by_directory(self, baseline_name): | 14 def read_results_by_directory(self, baseline_name): |
15 if baseline_name.endswith('txt'): | 15 if baseline_name.endswith('txt'): |
16 return {'LayoutTests/passes/text.html': '123456'} | 16 return {'LayoutTests/passes/text.html': '123456'} |
17 return {} | 17 return {} |
(...skipping 22 matching lines...) Expand all Loading... |
40 dict( | 40 dict( |
41 suffixes='png,txt', | 41 suffixes='png,txt', |
42 missing=True, | 42 missing=True, |
43 platform=None)), | 43 platform=None)), |
44 ['passes/text.html'], | 44 ['passes/text.html'], |
45 self.tool) | 45 self.tool) |
46 self.assertEqual(self.lines, | 46 self.assertEqual(self.lines, |
47 ['passes/text-expected.png: (no baselines found)', | 47 ['passes/text-expected.png: (no baselines found)', |
48 'passes/text-expected.txt:', | 48 'passes/text-expected.txt:', |
49 ' (generic): 123456']) | 49 ' (generic): 123456']) |
OLD | NEW |