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

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

Issue 11312203: "Reverting 14829-14832" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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/status_expression.dart ('k') | tools/testing/dart/test_runner.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("status_file_parser"); 5 #library("status_file_parser");
6 6
7 #import("dart:io"); 7 #import("dart:io");
8 #import("status_expression.dart"); 8 #import("status_expression.dart");
9 9
10 /** Possible outcomes of running a test. */ 10 /** Possible outcomes of running a test. */
11 const CRASH = "crash"; 11 const CRASH = "crash";
12 const TIMEOUT = "timeout"; 12 const TIMEOUT = "timeout";
13 const FAIL = "fail"; 13 const FAIL = "fail";
14 const PASS = "pass"; 14 const PASS = "pass";
15 /** 15 /**
16 * An indication to skip the test. The caller is responsible for skipping it. 16 * An indication to skip the test. The caller is responsible for skipping it.
17 */ 17 */
18 const SKIP = "skip"; 18 const SKIP = "skip";
19 const OK = "ok"; 19 const OK = "ok";
20 /** 20 /**
21 * An indication that a test is slow and we should allow extra time for 21 * An indication that a test is slow and we should allow extra time for
22 * completion. 22 * completion.
23 */ 23 */
24 const SLOW = "slow"; 24 const SLOW = "slow";
25 25
26 final RegExp StripComment = new RegExp("^[^#]*"); 26 const RegExp StripComment = const RegExp("^[^#]*");
27 final RegExp HeaderPattern = new RegExp(r"^\[([^\]]+)\]"); 27 const RegExp HeaderPattern = const RegExp(r"^\[([^\]]+)\]");
28 final RegExp RulePattern = new RegExp(r"\s*([^: ]*)\s*:(.*)"); 28 const RegExp RulePattern = const RegExp(r"\s*([^: ]*)\s*:(.*)");
29 29
30 // TODO(whesse): Implement configuration_info library that contains data 30 // TODO(whesse): Implement configuration_info library that contains data
31 // structures for test configuration, including Section. 31 // structures for test configuration, including Section.
32 class Section { 32 class Section {
33 BooleanExpression condition; 33 BooleanExpression condition;
34 List<TestRule> testRules; 34 List<TestRule> testRules;
35 35
36 Section.always() : condition = null, testRules = new List<TestRule>(); 36 Section.always() : condition = null, testRules = new List<TestRule>();
37 Section(this.condition) : testRules = new List<TestRule>(); 37 Section(this.condition) : testRules = new List<TestRule>();
38 38
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 } 206 }
207 regExps[i] = regExp; 207 regExps[i] = regExp;
208 } 208 }
209 _keyToRegExps[key] = regExps; 209 _keyToRegExps[key] = regExps;
210 }); 210 });
211 211
212 _regExpCache = null; 212 _regExpCache = null;
213 _preprocessed = true; 213 _preprocessed = true;
214 } 214 }
215 } 215 }
OLDNEW
« no previous file with comments | « tools/testing/dart/status_expression.dart ('k') | tools/testing/dart/test_runner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698