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

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/analyze_baselines_unittest.py

Issue 2578213005: Use underscores to separate words in filenames in webkitpy. (Closed)
Patch Set: Fix check for attribute in output_capture.py. Created 3 years, 12 months 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
OLDNEW
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
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'])
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698