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

Side by Side Diff: test/intl/testcfg.py

Issue 1812673005: Use ICU case conversion/transliterator for case conversion behind a flag (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: working now with HandleChecked Created 4 years, 9 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
« no previous file with comments | « test/intl/general/case-mapping.js ('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 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 fullpath = os.path.join(dirname, filename) 49 fullpath = os.path.join(dirname, filename)
50 relpath = fullpath[len(self.root) + 1 : -3] 50 relpath = fullpath[len(self.root) + 1 : -3]
51 testname = relpath.replace(os.path.sep, "/") 51 testname = relpath.replace(os.path.sep, "/")
52 test = testcase.TestCase(self, testname) 52 test = testcase.TestCase(self, testname)
53 tests.append(test) 53 tests.append(test)
54 return tests 54 return tests
55 55
56 def GetFlagsForTestCase(self, testcase, context): 56 def GetFlagsForTestCase(self, testcase, context):
57 flags = ["--allow-natives-syntax"] + context.mode_flags 57 flags = ["--allow-natives-syntax", "--icu-case-mapping"] + \
Dan Ehrenberg 2016/03/17 20:38:36 BTW other testcfg.py's have support for a // Flags
jungshik at Google 2016/04/08 18:09:33 I'm not sure what you meant. $ find . -name te
Dan Ehrenberg 2016/04/08 21:13:46 No, Flags is used in test cases, but implemented i
58 context.mode_flags
58 59
59 files = [] 60 files = []
60 files.append(os.path.join(self.root, "assert.js")) 61 files.append(os.path.join(self.root, "assert.js"))
61 files.append(os.path.join(self.root, "utils.js")) 62 files.append(os.path.join(self.root, "utils.js"))
62 files.append(os.path.join(self.root, testcase.path + self.suffix())) 63 files.append(os.path.join(self.root, testcase.path + self.suffix()))
63 64
64 flags += files 65 flags += files
65 if context.isolates: 66 if context.isolates:
66 flags.append("--isolate") 67 flags.append("--isolate")
67 flags += files 68 flags += files
68 69
69 return testcase.flags + flags 70 return testcase.flags + flags
70 71
71 72
72 def GetSuite(name, root): 73 def GetSuite(name, root):
73 return IntlTestSuite(name, root) 74 return IntlTestSuite(name, root)
OLDNEW
« no previous file with comments | « test/intl/general/case-mapping.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698