Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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) + |
| 83 ["--harmony"] + ["--harmony-proxies"] + | |
|
Dmitry Lomov (no reviews)
2014/08/25 14:17:10
Let's not enable --harmony-proxies here. Our imple
| |
| 83 [os.path.join(self.testroot, testcase.path + ".js")]) | 84 [os.path.join(self.testroot, testcase.path + ".js")]) |
| 84 | 85 |
| 85 def LoadParseTestRecord(self): | 86 def LoadParseTestRecord(self): |
| 86 if not self.ParseTestRecord: | 87 if not self.ParseTestRecord: |
| 87 root = os.path.join(self.root, *TEST_262_TOOLS_PATH) | 88 root = os.path.join(self.root, *TEST_262_TOOLS_PATH) |
| 88 f = None | 89 f = None |
| 89 try: | 90 try: |
| 90 (f, pathname, description) = imp.find_module("parseTestRecord", [root]) | 91 (f, pathname, description) = imp.find_module("parseTestRecord", [root]) |
| 91 module = imp.load_module("parseTestRecord", f, pathname, description) | 92 module = imp.load_module("parseTestRecord", f, pathname, description) |
| 92 self.ParseTestRecord = module.parseTestRecord | 93 self.ParseTestRecord = module.parseTestRecord |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 155 # Magic incantation to allow longer path names on Windows. | 156 # Magic incantation to allow longer path names on Windows. |
| 156 archive.extractall(u"\\\\?\\%s" % self.root) | 157 archive.extractall(u"\\\\?\\%s" % self.root) |
| 157 else: | 158 else: |
| 158 archive.extractall(self.root) | 159 archive.extractall(self.root) |
| 159 os.rename(os.path.join(self.root, "tc39-test262-%s" % revision), | 160 os.rename(os.path.join(self.root, "tc39-test262-%s" % revision), |
| 160 directory_name) | 161 directory_name) |
| 161 | 162 |
| 162 | 163 |
| 163 def GetSuite(name, root): | 164 def GetSuite(name, root): |
| 164 return Test262TestSuite(name, root) | 165 return Test262TestSuite(name, root) |
| OLD | NEW |