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

Side by Side Diff: tools/testing/dart/test_suite.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/test_runner.dart ('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 (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 /** 5 /**
6 * Classes and methods for enumerating and preparing tests. 6 * Classes and methods for enumerating and preparing tests.
7 * 7 *
8 * This library includes: 8 * This library includes:
9 * 9 *
10 * - Creating tests by listing all the Dart files in certain directories, 10 * - Creating tests by listing all the Dart files in certain directories,
11 * and creating [TestCase]s for those files that meet the relevant criteria. 11 * and creating [TestCase]s for those files that meet the relevant criteria.
12 * - Preparing tests, including copying files and frameworks to temporary 12 * - Preparing tests, including copying files and frameworks to temporary
13 * directories, and computing the command line and arguments to be run. 13 * directories, and computing the command line and arguments to be run.
14 */ 14 */
15 #library("test_suite"); 15 library test_suite;
16 16
17 #import("dart:io"); 17 import "dart:io";
18 #import("dart:isolate"); 18 import "dart:isolate";
19 #import("status_file_parser.dart"); 19 import "status_file_parser.dart";
20 #import("test_runner.dart"); 20 import "test_runner.dart";
21 #import("multitest.dart"); 21 import "multitest.dart";
22 #import("drt_updater.dart"); 22 import "drt_updater.dart";
23 #import("dart:uri"); 23 import "dart:uri";
24 24
25 #source("browser_test.dart"); 25 part "browser_test.dart";
26 26
27 27
28 // TODO(rnystrom): Add to dart:core? 28 // TODO(rnystrom): Add to dart:core?
29 /** 29 /**
30 * A simple function that tests [arg] and returns `true` or `false`. 30 * A simple function that tests [arg] and returns `true` or `false`.
31 */ 31 */
32 typedef bool Predicate<T>(T arg); 32 typedef bool Predicate<T>(T arg);
33 33
34 typedef void CreateTest(Path filePath, 34 typedef void CreateTest(Path filePath,
35 bool hasCompileError, 35 bool hasCompileError,
(...skipping 1720 matching lines...) Expand 10 before | Expand all | Expand 10 after
1756 * $pass tests are expected to pass 1756 * $pass tests are expected to pass
1757 * $failOk tests are expected to fail that we won't fix 1757 * $failOk tests are expected to fail that we won't fix
1758 * $fail tests are expected to fail that we should fix 1758 * $fail tests are expected to fail that we should fix
1759 * $crash tests are expected to crash that we should fix 1759 * $crash tests are expected to crash that we should fix
1760 * $timeout tests are allowed to timeout 1760 * $timeout tests are allowed to timeout
1761 * $compileErrorSkip tests are skipped on browsers due to compile-time error 1761 * $compileErrorSkip tests are skipped on browsers due to compile-time error
1762 """; 1762 """;
1763 print(report); 1763 print(report);
1764 } 1764 }
1765 } 1765 }
OLDNEW
« no previous file with comments | « tools/testing/dart/test_runner.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698