| 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.net.buildbot import Build | 7 from webkitpy.common.net.buildbot import Build |
| 8 from webkitpy.common.net.layouttestresults import LayoutTestResults | 8 from webkitpy.common.net.layout_test_results import LayoutTestResults |
| 9 from webkitpy.common.system.executive_mock import MockExecutive | 9 from webkitpy.common.system.executive_mock import MockExecutive |
| 10 from webkitpy.layout_tests.builder_list import BuilderList | 10 from webkitpy.layout_tests.builder_list import BuilderList |
| 11 from webkitpy.tool.commands.auto_rebaseline import AutoRebaseline | 11 from webkitpy.tool.commands.auto_rebaseline import AutoRebaseline |
| 12 from webkitpy.tool.commands.rebaseline_unittest import BaseTestCase | 12 from webkitpy.tool.commands.rebaseline_unittest import BaseTestCase |
| 13 from webkitpy.tool.commands.rebaseline_unittest import MockLineRemovingExecutive | 13 from webkitpy.tool.commands.rebaseline_unittest import MockLineRemovingExecutive |
| 14 | 14 |
| 15 | 15 |
| 16 class TestAutoRebaseline(BaseTestCase): | 16 class TestAutoRebaseline(BaseTestCase): |
| 17 command_constructor = AutoRebaseline | 17 command_constructor = AutoRebaseline |
| 18 | 18 |
| (...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 | 520 |
| 521 def test_execute_with_dry_run(self): | 521 def test_execute_with_dry_run(self): |
| 522 self._basic_execute_test([], dry_run=True) | 522 self._basic_execute_test([], dry_run=True) |
| 523 self.assertEqual(self.tool.scm().local_commits(), []) | 523 self.assertEqual(self.tool.scm().local_commits(), []) |
| 524 | 524 |
| 525 def test_bot_revision_data(self): | 525 def test_bot_revision_data(self): |
| 526 self._setup_mock_build_data() | 526 self._setup_mock_build_data() |
| 527 self.assertEqual( | 527 self.assertEqual( |
| 528 self.command.bot_revision_data(self.tool.scm()), | 528 self.command.bot_revision_data(self.tool.scm()), |
| 529 [{'builder': 'MOCK Win7', 'revision': '9000'}]) | 529 [{'builder': 'MOCK Win7', 'revision': '9000'}]) |
| OLD | NEW |