mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 01:35:43 +02:00
Add SpecialPowers extension to allow the browser to quit from content, and a bunch of other exciting things.
This commit is contained in:
parent
984c4d4de6
commit
ed574cb6c0
8 changed files with 417 additions and 3 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue