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

Unified Diff: test/test262-es6/testcfg.py

Issue 1136553008: Update Test262 to 5/30 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Arrow functions are now staged Created 5 years, 6 months 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/test262-es6/test262-es6.status ('k') | tools/testrunner/local/statusfile.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/test262-es6/testcfg.py
diff --git a/test/test262-es6/testcfg.py b/test/test262-es6/testcfg.py
index 0519dc0e0ecb7cd17ff6be40e2a65eb40ac7a25b..5ea8f2bdb21b9913809082513ff629604a56bc87 100644
--- a/test/test262-es6/testcfg.py
+++ b/test/test262-es6/testcfg.py
@@ -37,8 +37,8 @@ from testrunner.local import testsuite
from testrunner.local import utils
from testrunner.objects import testcase
-TEST_262_ARCHIVE_REVISION = "43acf61" # This is the 2015-03-31 revision.
-TEST_262_ARCHIVE_MD5 = "a77a0352a0462be98e50522a15b7a3c4"
+TEST_262_ARCHIVE_REVISION = "6883892" # This is the 2015-05-30 revision.
+TEST_262_ARCHIVE_MD5 = "527d617024c554bfa46ec19853ae4fc0"
TEST_262_URL = "https://github.com/tc39/test262/tarball/%s"
TEST_262_HARNESS_FILES = ["sta.js", "assert.js"]
@@ -79,6 +79,16 @@ class Test262TestSuite(testsuite.TestSuite):
self.GetIncludesForTest(testcase) + ["--harmony"] +
[os.path.join(self.testroot, testcase.path + ".js")])
+ def VariantFlags(self, testcase, default_flags):
+ flags = super(Test262TestSuite, self).VariantFlags(testcase, default_flags)
+ test_record = self.GetTestRecord(testcase)
+ if "noStrict" in test_record:
+ return flags
+ strict_flags = [f + ["--use-strict"] for f in flags]
+ if "onlyStrict" in test_record:
+ return strict_flags
+ return flags + strict_flags
+
def LoadParseTestRecord(self):
if not self.ParseTestRecord:
root = os.path.join(self.root, *TEST_262_TOOLS_PATH)
« no previous file with comments | « test/test262-es6/test262-es6.status ('k') | tools/testrunner/local/statusfile.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698