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

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

Issue 8775007: Allow varying case in the expected outcome (Pass, PASS). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 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/status_expression.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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 7
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 final CRASH = "Crash"; 11 final CRASH = "crash";
12 final TIMEOUT = "Timeout"; 12 final TIMEOUT = "timeout";
13 final FAIL = "Fail"; 13 final FAIL = "fail";
14 final PASS = "Pass"; 14 final PASS = "pass";
15 // An indication to skip the test. The caller is responsible for skipping it. 15 // An indication to skip the test. The caller is responsible for skipping it.
16 final SKIP = "Skip"; 16 final SKIP = "skip";
17 17
18 final RegExp StripComment = const RegExp("^[^#]*"); 18 final RegExp StripComment = const RegExp("^[^#]*");
19 final RegExp HeaderPattern = const RegExp(@"^\[([^\]]+)\]"); 19 final RegExp HeaderPattern = const RegExp(@"^\[([^\]]+)\]");
20 final RegExp RulePattern = const RegExp(@"\s*([^: ]*)\s*:(.*)"); 20 final RegExp RulePattern = const RegExp(@"\s*([^: ]*)\s*:(.*)");
21 final RegExp PrefixPattern = const RegExp(@"^\s*prefix\s+([\w\_\.\-\/]+)\s*$"); 21 final RegExp PrefixPattern = const RegExp(@"^\s*prefix\s+([\w\_\.\-\/]+)\s*$");
22 22
23 // TODO(whesse): Implement configuration_info library that contains data 23 // TODO(whesse): Implement configuration_info library that contains data
24 // structures for test configuration, including Section. 24 // structures for test configuration, including Section.
25 class Section { 25 class Section {
26 BooleanExpression condition; 26 BooleanExpression condition;
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 } 233 }
234 regExps[i] = regExp; 234 regExps[i] = regExp;
235 } 235 }
236 _keyToRegExps[key] = regExps; 236 _keyToRegExps[key] = regExps;
237 }); 237 });
238 238
239 _regExpCache = null; 239 _regExpCache = null;
240 _preprocessed = true; 240 _preprocessed = true;
241 } 241 }
242 } 242 }
OLDNEW
« no previous file with comments | « tools/testing/dart/status_expression.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698