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

Side by Side Diff: tools/testing/dart/multitest.dart

Issue 11575028: Moved the testing scripts to the new import/library/part syntax (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 | « tools/testing/dart/http_server.dart ('k') | tools/testing/dart/scrub_status_file.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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("multitest"); 5 library multitest;
6 6
7 #import("dart:io"); 7 import "dart:io";
8 #import("test_suite.dart"); 8 import "test_suite.dart";
9 9
10 // Multitests are Dart test scripts containing lines of the form 10 // Multitests are Dart test scripts containing lines of the form
11 // " [some dart code] /// [key]: [error type]" 11 // " [some dart code] /// [key]: [error type]"
12 // 12 //
13 // For each key in the file, a new test file is made containing all 13 // For each key in the file, a new test file is made containing all
14 // the normal lines of the file, and all of the multitest lines containing 14 // the normal lines of the file, and all of the multitest lines containing
15 // that key, in the same order as in the source file. The new test 15 // that key, in the same order as in the source file. The new test
16 // is expected to fail if there is a non-empty error type listed, of 16 // is expected to fail if there is a non-empty error type listed, of
17 // type 'compile-time error', 'runtime error', 'static type warning', or 17 // type 'compile-time error', 'runtime error', 'static type warning', or
18 // 'dynamic type error'. The type error tests fail only in checked mode. 18 // 'dynamic type error'. The type error tests fail only in checked mode.
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 // TestSuite.forDirectory. 259 // TestSuite.forDirectory.
260 split.removeLast(); 260 split.removeLast();
261 } 261 }
262 String path = '${generatedTestDir.path}/${split.last}'; 262 String path = '${generatedTestDir.path}/${split.last}';
263 Directory dir = new Directory(path); 263 Directory dir = new Directory(path);
264 if (!dir.existsSync()) { 264 if (!dir.existsSync()) {
265 dir.createSync(); 265 dir.createSync();
266 } 266 }
267 return new Path.fromNative(new File(path).fullPathSync()); 267 return new Path.fromNative(new File(path).fullPathSync());
268 } 268 }
OLDNEW
« no previous file with comments | « tools/testing/dart/http_server.dart ('k') | tools/testing/dart/scrub_status_file.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698