Add SpecialPowers extension to allow the browser to quit from content, and a bunch of other exciting things.

This commit is contained in:
Rob Sayre 2011-06-23 13:12:22 -07:00
parent 984c4d4de6
commit ed574cb6c0
8 changed files with 417 additions and 3 deletions

View file

@ -33,7 +33,8 @@ class TestOptions(OptionParser):
def verifyOptions(self, options):
if options.masterMode and options.manifestFile:
self.error("--masterMode and --manifestFile must not be specified at the same time.")
options.manifestFile = DEFAULT_MANIFEST_FILE
if not options.manifestFile:
options.manifestFile = DEFAULT_MANIFEST_FILE
return options
def prompt(question):
@ -149,6 +150,7 @@ class BrowserCommand():
def setup(self):
self.tempDir = tempfile.mkdtemp()
self.profileDir = os.path.join(self.tempDir, "profile")
print self.profileDir
shutil.copytree(os.path.join(DOC_ROOT, "test", "resources", "firefox"),
self.profileDir)