Chromium Code Reviews| Index: test/test262-es6/testcfg.py |
| diff --git a/test/test262-es6/testcfg.py b/test/test262-es6/testcfg.py |
| index e5fb22565fc80571704479591e6fdfa13271797a..5ff8d4b729d2b01ae741f5e42b20bda72a39fdcc 100644 |
| --- a/test/test262-es6/testcfg.py |
| +++ b/test/test262-es6/testcfg.py |
| @@ -33,6 +33,7 @@ import sys |
| import tarfile |
| import imp |
| +from testrunner.local import statusfile |
| from testrunner.local import testsuite |
| from testrunner.local import utils |
| from testrunner.objects import testcase |
| @@ -136,6 +137,12 @@ class Test262TestSuite(testsuite.TestSuite): |
| return True |
| return "FAILED!" in output.stdout |
| + def HasUnexpectedOutput(self, testcase): |
| + outcome = self.GetOutcome(testcase) |
| + if (statusfile.FAIL_SLOPPY in testcase.outcomes and "--use-strict" not in testcase.flags): |
|
Jakob Kummerow
2015/06/22 08:12:31
nit: 80col
|
| + return outcome != statusfile.FAIL |
| + return not outcome in (testcase.outcomes or [statusfile.PASS]) |
| + |
| def DownloadData(self): |
| revision = TEST_262_ARCHIVE_REVISION |
| archive_url = TEST_262_URL % revision |