| OLD | NEW |
| 1 # Copyright 2013 the V8 project authors. All rights reserved. | 1 # Copyright 2013 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 files.sort() | 45 files.sort() |
| 46 for filename in files: | 46 for filename in files: |
| 47 if (filename.endswith(".js") and filename != "assert.js" and | 47 if (filename.endswith(".js") and filename != "assert.js" and |
| 48 filename != "utils.js"): | 48 filename != "utils.js"): |
| 49 testname = os.path.join(dirname[len(self.root) + 1:], filename[:-3]) | 49 testname = os.path.join(dirname[len(self.root) + 1:], filename[:-3]) |
| 50 test = testcase.TestCase(self, testname) | 50 test = testcase.TestCase(self, testname) |
| 51 tests.append(test) | 51 tests.append(test) |
| 52 return tests | 52 return tests |
| 53 | 53 |
| 54 def GetFlagsForTestCase(self, testcase, context): | 54 def GetFlagsForTestCase(self, testcase, context): |
| 55 flags = ["--allow-natives-syntax"] + context.mode_flags | 55 flags = [] + context.mode_flags |
| 56 | 56 |
| 57 files = [] | 57 files = [] |
| 58 files.append(os.path.join(self.root, "assert.js")) | 58 files.append(os.path.join(self.root, "assert.js")) |
| 59 files.append(os.path.join(self.root, "utils.js")) | 59 files.append(os.path.join(self.root, "utils.js")) |
| 60 files.append(os.path.join(self.root, "date-format", "utils.js")) | 60 files.append(os.path.join(self.root, "date-format", "utils.js")) |
| 61 files.append(os.path.join(self.root, testcase.path + self.suffix())) | 61 files.append(os.path.join(self.root, testcase.path + self.suffix())) |
| 62 | 62 |
| 63 flags += files | 63 flags += files |
| 64 if context.isolates: | 64 if context.isolates: |
| 65 flags.append("--isolate") | 65 flags.append("--isolate") |
| 66 flags += files | 66 flags += files |
| 67 | 67 |
| 68 return testcase.flags + flags | 68 return testcase.flags + flags |
| 69 | 69 |
| 70 | 70 |
| 71 def GetSuite(name, root): | 71 def GetSuite(name, root): |
| 72 return IntlTestSuite(name, root) | 72 return IntlTestSuite(name, root) |
| OLD | NEW |