Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(633)

Side by Side Diff: Tools/Scripts/webkitpy/layout_tests/port/browser_test.py

Issue 466223002: Increase timeout for Mac when running print preview tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Modified Mac unittest to reflect changes to the timeout on mac. Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Tools/Scripts/webkitpy/layout_tests/port/browser_test_unittest.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 74
75 class BrowserTestLinuxPort(BrowserTestPortOverrides, linux.LinuxPort): 75 class BrowserTestLinuxPort(BrowserTestPortOverrides, linux.LinuxPort):
76 pass 76 pass
77 77
78 78
79 class BrowserTestMacPort(BrowserTestPortOverrides, mac.MacPort): 79 class BrowserTestMacPort(BrowserTestPortOverrides, mac.MacPort):
80 def _path_to_driver(self, configuration=None): 80 def _path_to_driver(self, configuration=None):
81 return self._build_path_with_configuration(configuration, self.driver_na me()) 81 return self._build_path_with_configuration(configuration, self.driver_na me())
82 82
83 def default_timeout_ms(self):
84 timeout_ms = 20 * 1000
85 if self.get_option('configuration') == 'Debug': # pylint: disable=E1101
86 # Debug is usually 2x-3x slower than Release.
87 return 3 * timeout_ms
88 return timeout_ms
89
83 90
84 class BrowserTestWinPort(BrowserTestPortOverrides, win.WinPort): 91 class BrowserTestWinPort(BrowserTestPortOverrides, win.WinPort):
85 def default_timeout_ms(self): 92 def default_timeout_ms(self):
86 timeout_ms = 20 * 1000 93 timeout_ms = 20 * 1000
87 if self.get_option('configuration') == 'Debug': # pylint: disable=E1101 94 if self.get_option('configuration') == 'Debug': # pylint: disable=E1101
88 # Debug is usually 2x-3x slower than Release. 95 # Debug is usually 2x-3x slower than Release.
89 return 3 * timeout_ms 96 return 3 * timeout_ms
90 return timeout_ms 97 return timeout_ms
OLDNEW
« no previous file with comments | « no previous file | Tools/Scripts/webkitpy/layout_tests/port/browser_test_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698