Beispiel #1
0
 def test_other_options_are_preserved(self):
     params = ['-someOpt', 'value', '-otherOpt']
     self.assertEquals(_server_startup_params(params),
                       params + [FIREFOX_TEMPLATE_ARG, FIREFOX_PROFILE_DIR])
Beispiel #2
0
 def test_given_profile_is_not_overridden(self):
     params = _server_startup_params([FIREFOX_TEMPLATE_ARG, 'foo'])
     self.assertEquals(params, [FIREFOX_TEMPLATE_ARG, 'foo'])
Beispiel #3
0
 def test_real_default_profile_can_be_used(self):
     params = [FIREFOX_TEMPLATE_ARG, FIREFOX_DEFAULT_PROFILE]
     self.assertEquals(_server_startup_params(params), [])
Beispiel #4
0
 def test_selenium_lib_default_profile_is_used_when_no_profile_given(self):
     self.assertEquals(_server_startup_params([]),
                       [FIREFOX_TEMPLATE_ARG, FIREFOX_PROFILE_DIR])
 def test_other_options_are_preserved(self):
     params = ['-someOpt', 'value', '-otherOpt']
     self.assertEquals(_server_startup_params(params),
                       params + [FIREFOX_TEMPLATE_ARG, FIREFOX_PROFILE_DIR])
 def test_real_default_profile_can_be_used(self):
     params = [FIREFOX_TEMPLATE_ARG, FIREFOX_DEFAULT_PROFILE]
     self.assertEquals(_server_startup_params(params), [])
 def test_given_profile_is_not_overridden(self):
     params = _server_startup_params([FIREFOX_TEMPLATE_ARG, 'foo'])
     self.assertEquals(params, [FIREFOX_TEMPLATE_ARG, 'foo'])
 def test_selenium_lib_default_profile_is_used_when_no_profile_given(self):
     self.assertEquals(_server_startup_params([]),
                       [FIREFOX_TEMPLATE_ARG, FIREFOX_PROFILE_DIR])