| Index: third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl_unittest.py
|
| diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl_unittest.py b/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl_unittest.py
|
| index a01849505d6596040df1996af137306394e2674a..e0d4eec3694ccb81ce9cd4d92abac768bfb0fc46 100644
|
| --- a/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl_unittest.py
|
| +++ b/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl_unittest.py
|
| @@ -149,6 +149,7 @@ class RebaselineCLTest(BaseTestCase, LoggingTestCase):
|
| 'results_directory': None,
|
| 'verbose': False,
|
| 'trigger_jobs': False,
|
| + 'fill_missing': False,
|
| }
|
| options.update(kwargs)
|
| return optparse.Values(dict(**options))
|
| @@ -339,3 +340,16 @@ class RebaselineCLTest(BaseTestCase, LoggingTestCase):
|
| 'ERROR: Aborting: there are unstaged baselines:\n',
|
| 'ERROR: /mock-checkout/third_party/WebKit/LayoutTests/my-test-expected.txt\n',
|
| ])
|
| +
|
| + def test_fill_in_missing_results(self):
|
| + test_baseline_set = TestBaselineSet(self.tool)
|
| + test_baseline_set.add('fast/dom/prototype-taco.html', Build('MOCK Try Linux', 100))
|
| + test_baseline_set.add('fast/dom/prototype-taco.html', Build('MOCK Try Win', 200))
|
| + self.command.fill_in_missing_results(test_baseline_set)
|
| + self.assertEqual(
|
| + test_baseline_set.build_port_pairs('fast/dom/prototype-taco.html'),
|
| + [
|
| + (Build(builder_name='MOCK Try Linux', build_number=100), 'test-linux-trusty'),
|
| + (Build(builder_name='MOCK Try Win', build_number=200), 'test-win-win7'),
|
| + (Build(builder_name='MOCK Try Linux', build_number=100), 'test-mac-mac10.11'),
|
| + ])
|
|
|