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

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

Issue 841193003: cleanup to tools/testing/dart (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: one last bit Created 5 years, 11 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
« no previous file with comments | « tools/testing/dart/lib/launch_browser.dart ('k') | tools/testing/dart/lib/path.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:async"; 7 import 'dart:async';
8 import "dart:io"; 8 import 'dart:io';
9 9
10 import "path.dart"; 10 import 'path.dart';
11 import "test_suite.dart"; 11 import 'test_utils.dart';
12 import "utils.dart"; 12 import 'utils.dart';
13 13
14 // Multitests are Dart test scripts containing lines of the form 14 // Multitests are Dart test scripts containing lines of the form
15 // " [some dart code] /// [key]: [error type]" 15 // " [some dart code] /// [key]: [error type]"
16 // 16 //
17 // For each key in the file, a new test file is made containing all 17 // For each key in the file, a new test file is made containing all
18 // the normal lines of the file, and all of the multitest lines containing 18 // the normal lines of the file, and all of the multitest lines containing
19 // that key, in the same order as in the source file. The new test is expected 19 // that key, in the same order as in the source file. The new test is expected
20 // to pass if the error type listed is 'ok', or to fail if there is an error 20 // to pass if the error type listed is 'ok', or to fail if there is an error
21 // type of type 'compile-time error', 'runtime error', 'static type warning', or 21 // type of type 'compile-time error', 'runtime error', 'static type warning', or
22 // 'dynamic type error'. The type error tests fail only in checked mode. 22 // 'dynamic type error'. The type error tests fail only in checked mode.
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 // TestSuite.forDirectory. 298 // TestSuite.forDirectory.
299 split.removeLast(); 299 split.removeLast();
300 } 300 }
301 String path = '${generatedTestDir.path}/${split.last}'; 301 String path = '${generatedTestDir.path}/${split.last}';
302 Directory dir = new Directory(path); 302 Directory dir = new Directory(path);
303 if (!dir.existsSync()) { 303 if (!dir.existsSync()) {
304 dir.createSync(); 304 dir.createSync();
305 } 305 }
306 return new Path(new File(path).absolute.path); 306 return new Path(new File(path).absolute.path);
307 } 307 }
OLDNEW
« no previous file with comments | « tools/testing/dart/lib/launch_browser.dart ('k') | tools/testing/dart/lib/path.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698