OLD | NEW |
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:convert" show LineSplitter, UTF8; | 8 import "dart:convert" show LineSplitter, UTF8; |
9 import "dart:io"; | 9 import "dart:io"; |
10 | 10 |
| 11 import "path.dart"; |
11 import "status_expression.dart"; | 12 import "status_expression.dart"; |
12 import "utils.dart" show Path; | |
13 | 13 |
14 class Expectation { | 14 class Expectation { |
15 // Possible outcomes of running a test. | 15 // Possible outcomes of running a test. |
16 static Expectation PASS = byName('Pass'); | 16 static Expectation PASS = byName('Pass'); |
17 static Expectation CRASH = byName('Crash'); | 17 static Expectation CRASH = byName('Crash'); |
18 static Expectation TIMEOUT = byName('Timeout'); | 18 static Expectation TIMEOUT = byName('Timeout'); |
19 static Expectation FAIL = byName('Fail'); | 19 static Expectation FAIL = byName('Fail'); |
20 | 20 |
21 // Special 'FAIL' cases | 21 // Special 'FAIL' cases |
22 static Expectation RUNTIME_ERROR = byName('RuntimeError'); | 22 static Expectation RUNTIME_ERROR = byName('RuntimeError'); |
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 } | 343 } |
344 regExps[i] = regExp; | 344 regExps[i] = regExp; |
345 } | 345 } |
346 _keyToRegExps[key] = regExps; | 346 _keyToRegExps[key] = regExps; |
347 }); | 347 }); |
348 | 348 |
349 _regExpCache = null; | 349 _regExpCache = null; |
350 _preprocessed = true; | 350 _preprocessed = true; |
351 } | 351 } |
352 } | 352 } |
OLD | NEW |