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

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

Issue 164333013: Fixes for the test framework multitests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: space instead of newline Created 6 years, 10 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/multitest.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,
(...skipping 10 matching lines...) Expand all
21 import "status_file_parser.dart"; 21 import "status_file_parser.dart";
22 import "test_runner.dart"; 22 import "test_runner.dart";
23 import "utils.dart"; 23 import "utils.dart";
24 import "http_server.dart" show PREFIX_BUILDDIR, PREFIX_DARTDIR; 24 import "http_server.dart" show PREFIX_BUILDDIR, PREFIX_DARTDIR;
25 25
26 part "browser_test.dart"; 26 part "browser_test.dart";
27 27
28 28
29 RegExp multiHtmlTestGroupRegExp = new RegExp(r"\s*[^/]\s*group\('[^,']*"); 29 RegExp multiHtmlTestGroupRegExp = new RegExp(r"\s*[^/]\s*group\('[^,']*");
30 RegExp multiHtmlTestRegExp = new RegExp(r"useHtmlIndividualConfiguration()"); 30 RegExp multiHtmlTestRegExp = new RegExp(r"useHtmlIndividualConfiguration()");
31 RegExp multiTestRegExp = new RegExp(r"/// [0-9][0-9]:(.*)"); 31 // Require at least one non-space character before '///'
32 RegExp multiTestRegExp = new RegExp(r"\S *"
33 r"/// \w+:(.*)");
32 34
33 /** 35 /**
34 * A simple function that tests [arg] and returns `true` or `false`. 36 * A simple function that tests [arg] and returns `true` or `false`.
35 */ 37 */
36 typedef bool Predicate<T>(T arg); 38 typedef bool Predicate<T>(T arg);
37 39
38 typedef void CreateTest(Path filePath, 40 typedef void CreateTest(Path filePath,
39 bool hasCompileError, 41 bool hasCompileError,
40 bool hasRuntimeError, 42 bool hasRuntimeError,
41 {bool isNegativeIfChecked, 43 {bool isNegativeIfChecked,
(...skipping 2219 matching lines...) Expand 10 before | Expand all | Expand 10 after
2261 * $pass tests are expected to pass 2263 * $pass tests are expected to pass
2262 * $failOk tests are expected to fail that we won't fix 2264 * $failOk tests are expected to fail that we won't fix
2263 * $fail tests are expected to fail that we should fix 2265 * $fail tests are expected to fail that we should fix
2264 * $crash tests are expected to crash that we should fix 2266 * $crash tests are expected to crash that we should fix
2265 * $timeout tests are allowed to timeout 2267 * $timeout tests are allowed to timeout
2266 * $compileErrorSkip tests are skipped on browsers due to compile-time error 2268 * $compileErrorSkip tests are skipped on browsers due to compile-time error
2267 """; 2269 """;
2268 print(report); 2270 print(report);
2269 } 2271 }
2270 } 2272 }
OLDNEW
« no previous file with comments | « tools/testing/dart/multitest.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698