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

Side by Side Diff: test/test262-es6/testcfg.py

Issue 474423003: Activate --harmony switch on test262-es6 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « test/test262-es6/test262-es6.status ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2012 the V8 project authors. All rights reserved. 1 # Copyright 2012 the V8 project authors. All rights reserved.
2 # Redistribution and use in source and binary forms, with or without 2 # Redistribution and use in source and binary forms, with or without
3 # modification, are permitted provided that the following conditions are 3 # modification, are permitted provided that the following conditions are
4 # met: 4 # met:
5 # 5 #
6 # * Redistributions of source code must retain the above copyright 6 # * Redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer. 7 # notice, this list of conditions and the following disclaimer.
8 # * Redistributions in binary form must reproduce the above 8 # * Redistributions in binary form must reproduce the above
9 # copyright notice, this list of conditions and the following 9 # copyright notice, this list of conditions and the following
10 # disclaimer in the documentation and/or other materials provided 10 # disclaimer in the documentation and/or other materials provided
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 for filename in files: 72 for filename in files:
73 if filename.endswith(".js"): 73 if filename.endswith(".js"):
74 testname = os.path.join(dirname[len(self.testroot) + 1:], 74 testname = os.path.join(dirname[len(self.testroot) + 1:],
75 filename[:-3]) 75 filename[:-3])
76 case = testcase.TestCase(self, testname) 76 case = testcase.TestCase(self, testname)
77 tests.append(case) 77 tests.append(case)
78 return tests 78 return tests
79 79
80 def GetFlagsForTestCase(self, testcase, context): 80 def GetFlagsForTestCase(self, testcase, context):
81 return (testcase.flags + context.mode_flags + self.harness + 81 return (testcase.flags + context.mode_flags + self.harness +
82 self.GetIncludesForTest(testcase) + 82 self.GetIncludesForTest(testcase) + ["--harmony"] +
83 [os.path.join(self.testroot, testcase.path + ".js")]) 83 [os.path.join(self.testroot, testcase.path + ".js")])
84 84
85 def LoadParseTestRecord(self): 85 def LoadParseTestRecord(self):
86 if not self.ParseTestRecord: 86 if not self.ParseTestRecord:
87 root = os.path.join(self.root, *TEST_262_TOOLS_PATH) 87 root = os.path.join(self.root, *TEST_262_TOOLS_PATH)
88 f = None 88 f = None
89 try: 89 try:
90 (f, pathname, description) = imp.find_module("parseTestRecord", [root]) 90 (f, pathname, description) = imp.find_module("parseTestRecord", [root])
91 module = imp.load_module("parseTestRecord", f, pathname, description) 91 module = imp.load_module("parseTestRecord", f, pathname, description)
92 self.ParseTestRecord = module.parseTestRecord 92 self.ParseTestRecord = module.parseTestRecord
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 # Magic incantation to allow longer path names on Windows. 155 # Magic incantation to allow longer path names on Windows.
156 archive.extractall(u"\\\\?\\%s" % self.root) 156 archive.extractall(u"\\\\?\\%s" % self.root)
157 else: 157 else:
158 archive.extractall(self.root) 158 archive.extractall(self.root)
159 os.rename(os.path.join(self.root, "tc39-test262-%s" % revision), 159 os.rename(os.path.join(self.root, "tc39-test262-%s" % revision),
160 directory_name) 160 directory_name)
161 161
162 162
163 def GetSuite(name, root): 163 def GetSuite(name, root):
164 return Test262TestSuite(name, root) 164 return Test262TestSuite(name, root)
OLDNEW
« no previous file with comments | « test/test262-es6/test262-es6.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698