Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(495)

Unified Diff: test/mozilla/testcfg.py

Issue 12894: * Updated mozilla.status to exclude new incompatible tests. (Closed)
Patch Set: Added options emulation for mozilla tests Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mozilla/mozilla-shell-emulation.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mozilla/testcfg.py
diff --git a/test/mozilla/testcfg.py b/test/mozilla/testcfg.py
index 8193b82fa31e2f893d22a92ea1f4b61b8ec95f30..477b2b2fe2d4dca06b8d6741c9cf26d263a9d360 100644
--- a/test/mozilla/testcfg.py
+++ b/test/mozilla/testcfg.py
@@ -56,11 +56,12 @@ TEST_DIRS = """
class MozillaTestCase(test.TestCase):
- def __init__(self, filename, path, context, mode, framework):
+ def __init__(self, filename, path, context, root, mode, framework):
super(MozillaTestCase, self).__init__(context, path)
self.filename = filename
self.mode = mode
self.framework = framework
+ self.root = root
def IsNegative(self):
return self.filename.endswith('-n.js')
@@ -74,7 +75,8 @@ class MozillaTestCase(test.TestCase):
return 'FAILED!' in output.stdout
def GetCommand(self):
- result = [self.context.GetVm(self.mode), '--expose-gc']
+ result = [self.context.GetVm(self.mode), '--expose-gc',
+ join(self.root, 'mozilla-shell-emulation.js')]
result += self.framework
result.append(self.filename)
return result
@@ -117,7 +119,7 @@ class MozillaTestConfiguration(test.TestConfiguration):
full_path = [x for x in full_path if x != 'data']
if self.Contains(path, full_path):
test = MozillaTestCase(join(root, file), full_path, self.context,
- mode, framework)
+ self.root, mode, framework)
tests.append(test)
return tests
« no previous file with comments | « test/mozilla/mozilla-shell-emulation.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698