12017-08-03 Carlos Alberto Lopez Perez <clopez@igalia.com>
2
3 REGRESSION(r219850): run-benchmark script broken on Linux
4 https://bugs.webkit.org/show_bug.cgi?id=175126
5
6 Reviewed by NOBODY (OOPS!).
7
8 The run-benchmark script dynamically generates the list of supported
9 browsers and platforms (currently Linux and OSX) by loading all
10 python files from Tools/Scripts/webkitpy/benchmark_runner/browser_driver
11 and getting the browser_name and platform variables from the
12 classes defined there.
13
14 This means that this classes should not raise an exception when
15 loaded on other platforms or otherwise they will broke the whole
16 script. Its fine if they raise an exception when executing any of
17 the methods they implement, but not when just loading/importing
18 the class.
19
20 Move the argument variable definitions that call on the platform
21 specific OSXBrowserDriver._screen_size() function from the main
22 files to the launch_url() function definition.
23
24 * Scripts/webkitpy/benchmark_runner/browser_driver/osx_chrome_driver.py:
25 (OSXChromeDriver.launch_url):
26 (OSXChromeCanaryDriver.launch_url):
27 * Scripts/webkitpy/benchmark_runner/browser_driver/osx_firefox_driver.py:
28 (OSXFirefoxDriver.launch_url):
29 (OSXFirefoxNightlyDriver.launch_url):
30