Beispiel #1
0
 def setUp(self):
     mock_port = Mock()
     # FIXME: The Driver should not be grabbing at port._options!
     mock_port._options = Mock()
     mock_port._options.wrapper = ""
     self.driver = chromium.ChromiumDriver(mock_port,
                                           image_path=None,
                                           options=None)
Beispiel #2
0
 def setUp(self):
     host = MockSystemHost()
     options = MockOptions(configuration='Release',
                           additional_drt_flag=['--test-shell'])
     config = MockConfig(filesystem=host.filesystem,
                         default_configuration='Release')
     self.port = chromium_mac.ChromiumMacPort(host,
                                              'chromium-mac-snowleopard',
                                              options=options,
                                              config=config)
     self.driver = chromium.ChromiumDriver(self.port,
                                           worker_number=0,
                                           pixel_tests=True)
Beispiel #3
0
 def setUp(self):
     mock_port = Mock()
     mock_port.get_option = lambda option_name: ''
     self.driver = chromium.ChromiumDriver(mock_port, worker_number=0)
Beispiel #4
0
 def setUp(self):
     mock_port = Mock()  # FIXME: This should use a tighter mock.
     self.driver = chromium.ChromiumDriver(mock_port,
                                           worker_number=0,
                                           pixel_tests=True)