def test_update_command_interactive(self): tool = MockTool() options = MockOptions(non_interactive=False) step = Update(tool, options) self.assertEqual(["mock-update-webkit"], step._update_command()) tool._deprecated_port = MacPort() self.assertEqual(["Tools/Scripts/update-webkit"], step._update_command()) tool._deprecated_port = MacWK2Port() self.assertEqual(["Tools/Scripts/update-webkit"], step._update_command())
def test_update_command_non_interactive(self): tool = MockTool() options = MockOptions(non_interactive=True) step = Update(tool, options) self.assertEqual(["mock-update-webkit"], step._update_command()) tool._deprecated_port = ChromiumPort() self.assertEqual(["Tools/Scripts/update-webkit", "--chromium", "--force-update"], step._update_command()) tool._deprecated_port = ChromiumXVFBPort() self.assertEqual(["Tools/Scripts/update-webkit", "--chromium", "--force-update"], step._update_command())
def test_update_command_interactive(self): tool = MockTool() options = MockOptions(non_interactive=False) step = Update(tool, options) self.assertEqual(["mock-update-webkit"], step._update_command()) tool._port = tool.port_factory.get("mac") self.assertEqual(["Tools/Scripts/update-webkit"], step._update_command()) tool._port = tool.port_factory.get("mac-wk2") self.assertEqual(["Tools/Scripts/update-webkit"], step._update_command())
def test_update_command_interactive(self): tool = MockTool() options = MockOptions(non_interactive=False) step = Update(tool, options) self.assertEqual(["mock-update-webkit"], step._update_command()) tool._deprecated_port = ChromiumPort() self.assertEqual(["Tools/Scripts/update-webkit", "--chromium"], step._update_command()) tool._deprecated_port = ChromiumXVFBPort() self.assertEqual(["Tools/Scripts/update-webkit", "--chromium"], step._update_command())
def test_update_command_non_interactive(self): tool = MockTool() options = MockOptions(non_interactive=True) step = Update(tool, options) self.assertEqual(["mock-update-webkit"], step._update_command()) tool._deprecated_port = MacPort() self.assertEqual(["Tools/Scripts/update-webkit"], step._update_command()) tool._deprecated_port = MacWK2Port() self.assertEqual(["Tools/Scripts/update-webkit"], step._update_command())
def test_update_command_interactive(self): tool = MockTool() options = MockOptions(non_interactive=False) step = Update(tool, options) self.assertEqual(["mock-update-webkit"], step._update_command()) tool._port = tool.port_factory.get("mac") self.assertEqual(["Tools/Scripts/update-webkit"], step._update_command()) tool._port = tool.port_factory.get("mac-wk2") self.assertEqual(["Tools/Scripts/update-webkit"], step._update_command())