mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 647414 - Distributed extensions should be automatically installed into temporary testing profile; (Bv3) Make installExtensionsToProfile() automatically install application distributed extensions.
r=jmaher.
This commit is contained in:
parent
e51245f503
commit
0a24429b84
@ -178,7 +178,14 @@ class RefTest(object):
|
||||
continue
|
||||
|
||||
def installExtensionsToProfile(self, options, profileDir):
|
||||
"Install the specified extensions on the command line to the testing profile."
|
||||
"Install application distributed extensions and specified on the command line ones to testing profile."
|
||||
# Install distributed extensions, if application has any.
|
||||
distExtDir = os.path.join(options.app[ : options.app.rfind(os.sep)], "distribution", "extensions")
|
||||
if os.path.isdir(distExtDir):
|
||||
for f in os.listdir(distExtDir):
|
||||
self.automation.installExtension(os.path.join(distExtDir, f), profileDir)
|
||||
|
||||
# Install custom extensions.
|
||||
for f in options.extensionsToInstall:
|
||||
self.automation.installExtension(self.getFullPath(f), profileDir)
|
||||
|
||||
|
@ -771,7 +771,14 @@ overlay chrome://browser/content/browser.xul chrome://mochikit/content/browser-t
|
||||
continue
|
||||
|
||||
def installExtensionsToProfile(self, options):
|
||||
"Install the specified extensions on the command line to the testing profile."
|
||||
"Install application distributed extensions and specified on the command line ones to testing profile."
|
||||
# Install distributed extensions, if application has any.
|
||||
distExtDir = os.path.join(options.app[ : options.app.rfind(os.sep)], "distribution", "extensions")
|
||||
if os.path.isdir(distExtDir):
|
||||
for f in os.listdir(distExtDir):
|
||||
self.automation.installExtension(os.path.join(distExtDir, f), options.profilePath)
|
||||
|
||||
# Install custom extensions.
|
||||
for f in options.extensionsToInstall:
|
||||
self.automation.installExtension(self.getFullPath(f), options.profilePath)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user