run-benchmark should support Chrome Canary and Firefox Nightly
[WebKit-https.git] / Tools / Scripts / webkitpy / benchmark_runner / browser_driver / osx_firefox_driver.py
1 #!/usr/bin/env python
2
3 import logging
4 import os
5 import subprocess
6 import time
7
8 from osx_browser_driver import OSXBrowserDriver
9
10
11 _log = logging.getLogger(__name__)
12
13
14 class OSXFirefoxDriver(OSXBrowserDriver):
15     bundleIdentifier = 'org.mozilla.firefox'
16
17     def launchUrl(self, url, browserBuildPath):
18         self.launchProcess(buildDir=browserBuildPath, appName='Firefox.app', url=url, args=[url])
19
20
21 class OSXFirefoxNightlyDriver(OSXBrowserDriver):
22     bundleIdentifier = 'org.mozilla.nightly'
23
24     def launchUrl(self, url, browserBuildPath):
25         self.launchProcess(buildDir=browserBuildPath, appName='FirefoxNightly.app', url=url, args=[url])