Ejemplo n.º 1
0
    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())
Ejemplo n.º 2
0
    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())
Ejemplo n.º 3
0
    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())
Ejemplo n.º 4
0
    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())
Ejemplo n.º 5
0
    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())
Ejemplo n.º 6
0
    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())

        tool._deprecated_port = ChromiumAndroidPort()
        self.assertEqual(["Tools/Scripts/update-webkit", "--chromium", "--chromium-android"], step._update_command())