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

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

Issue 23368003: Cleanup of isolate.status (first step) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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
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:async"; 7 import "dart:async";
8 import "dart:io"; 8 import "dart:io";
9 import "status_expression.dart"; 9 import "status_expression.dart";
10 10
11 /** Possible outcomes of running a test. */ 11 /** Possible outcomes of running a test. */
12 const CRASH = "crash"; 12 const CRASH = "crash";
13 const TIMEOUT = "timeout"; 13 const TIMEOUT = "timeout";
14 const FAIL = "fail"; 14 const FAIL = "fail";
15 const PASS = "pass"; 15 const PASS = "pass";
16 /** 16 /**
17 * An indication to skip the test. The caller is responsible for skipping it. 17 * An indication to skip the test. The caller is responsible for skipping it.
18 */ 18 */
19 const SKIP = "skip"; 19 const SKIP = "skip";
20 const SKIP_BY_DESIGN = "skipbydesign";
20 const OK = "ok"; 21 const OK = "ok";
21 /** 22 /**
22 * An indication that a test is slow and we should allow extra time for 23 * An indication that a test is slow and we should allow extra time for
23 * completion. 24 * completion.
24 */ 25 */
25 const SLOW = "slow"; 26 const SLOW = "slow";
26 27
27 final RegExp SplitComment = new RegExp("^([^#]*)(#.*)?\$"); 28 final RegExp SplitComment = new RegExp("^([^#]*)(#.*)?\$");
28 final RegExp HeaderPattern = new RegExp(r"^\[([^\]]+)\]"); 29 final RegExp HeaderPattern = new RegExp(r"^\[([^\]]+)\]");
29 final RegExp RulePattern = new RegExp(r"\s*([^: ]*)\s*:(.*)"); 30 final RegExp RulePattern = new RegExp(r"\s*([^: ]*)\s*:(.*)");
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 } 225 }
225 regExps[i] = regExp; 226 regExps[i] = regExp;
226 } 227 }
227 _keyToRegExps[key] = regExps; 228 _keyToRegExps[key] = regExps;
228 }); 229 });
229 230
230 _regExpCache = null; 231 _regExpCache = null;
231 _preprocessed = true; 232 _preprocessed = true;
232 } 233 }
233 } 234 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698