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

Side by Side Diff: tests/co19/test_config.dart

Issue 10584014: Change test scripts to use Path library in most places, instead of strings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix bugs Created 8 years, 5 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #library("co19_test_config"); 5 #library("co19_test_config");
6 6
7 #import("dart:io");
7 #import("../../tools/testing/dart/test_suite.dart"); 8 #import("../../tools/testing/dart/test_suite.dart");
8 9
9 class Co19TestSuite extends StandardTestSuite { 10 class Co19TestSuite extends StandardTestSuite {
10 RegExp _testRegExp = const RegExp(@"t[0-9]{2}.dart$"); 11 RegExp _testRegExp = const RegExp(@"t[0-9]{2}.dart$");
11 12
12 Co19TestSuite(Map configuration) 13 Co19TestSuite(Map configuration)
13 : super(configuration, 14 : super(configuration,
14 "co19", 15 "co19",
15 "tests/co19/src", 16 const Path("tests/co19/src"),
16 ["tests/co19/co19-compiler.status", 17 ["tests/co19/co19-compiler.status",
17 "tests/co19/co19-runtime.status", 18 "tests/co19/co19-runtime.status",
18 "tests/co19/co19-frog.status", 19 "tests/co19/co19-frog.status",
19 "tests/co19/co19-leg.status"]); 20 "tests/co19/co19-leg.status"]);
20 21
21 bool isTestFile(String filename) => _testRegExp.hasMatch(filename); 22 bool isTestFile(String filename) => _testRegExp.hasMatch(filename);
22 bool listRecursively() => true; 23 bool listRecursively() => true;
23 } 24 }
OLDNEW
« no previous file with comments | « samples/tests/dartc/test_config.dart ('k') | tools/test.dart » ('j') | tools/test-runtime.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698