OLD | NEW |
1 # Copyright (C) 2014 Google Inc. All rights reserved. | 1 # Copyright (C) 2014 Google Inc. All rights reserved. |
2 # | 2 # |
3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
5 # met: | 5 # met: |
6 # | 6 # |
7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
10 # copyright notice, this list of conditions and the following disclaimer | 10 # copyright notice, this list of conditions and the following disclaimer |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 def test_driver_path(self): | 104 def test_driver_path(self): |
105 test_port = self.make_port(options=MockOptions(driver_name='browser_test
s')) | 105 test_port = self.make_port(options=MockOptions(driver_name='browser_test
s')) |
106 self.assertFalse('.app/Contents/MacOS' in test_port._path_to_driver()) | 106 self.assertFalse('.app/Contents/MacOS' in test_port._path_to_driver()) |
107 | 107 |
108 def test_check_sys_deps(self): | 108 def test_check_sys_deps(self): |
109 port = self.make_port() | 109 port = self.make_port() |
110 port._executive = MockExecutive2(exit_code=0) | 110 port._executive = MockExecutive2(exit_code=0) |
111 self.assertEqual(port.check_sys_deps(needs_http=False), test_run_results
.OK_EXIT_STATUS) | 111 self.assertEqual(port.check_sys_deps(needs_http=False), test_run_results
.OK_EXIT_STATUS) |
112 | 112 |
113 def test_default_timeout_ms(self): | 113 def test_default_timeout_ms(self): |
114 self.assertEqual(self.make_port(options=MockOptions(configuration='Relea
se')).default_timeout_ms(), 10000) | 114 self.assertEqual(self.make_port(options=MockOptions(configuration='Relea
se')).default_timeout_ms(), 20000) |
115 self.assertEqual(self.make_port(options=MockOptions(configuration='Debug
')).default_timeout_ms(), 30000) | 115 self.assertEqual(self.make_port(options=MockOptions(configuration='Debug
')).default_timeout_ms(), 60000) |
OLD | NEW |