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

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

Issue 924793002: Add SkipSlow marker (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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
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:convert" show LineSplitter, UTF8; 8 import "dart:convert" show LineSplitter, UTF8;
9 import "dart:io"; 9 import "dart:io";
10 10
(...skipping 15 matching lines...) Expand all
26 byName('MissingCompileTimeError'); 26 byName('MissingCompileTimeError');
27 static Expectation STATIC_WARNING = byName('StaticWarning'); 27 static Expectation STATIC_WARNING = byName('StaticWarning');
28 static Expectation MISSING_STATIC_WARNING = 28 static Expectation MISSING_STATIC_WARNING =
29 byName('MissingStaticWarning'); 29 byName('MissingStaticWarning');
30 static Expectation PUB_GET_ERROR = byName('PubGetError'); 30 static Expectation PUB_GET_ERROR = byName('PubGetError');
31 31
32 // "meta expectations" 32 // "meta expectations"
33 static Expectation OK = byName('Ok'); 33 static Expectation OK = byName('Ok');
34 static Expectation SLOW = byName('Slow'); 34 static Expectation SLOW = byName('Slow');
35 static Expectation SKIP = byName('Skip'); 35 static Expectation SKIP = byName('Skip');
36 static Expectation SKIP_SLOW = byName('SkipSlow');
36 static Expectation SKIP_BY_DESIGN = byName('SkipByDesign'); 37 static Expectation SKIP_BY_DESIGN = byName('SkipByDesign');
37 38
38 static Expectation byName(String name) { 39 static Expectation byName(String name) {
39 _initialize(); 40 _initialize();
40 name = name.toLowerCase(); 41 name = name.toLowerCase();
41 if (!_AllExpectations.containsKey(name)) { 42 if (!_AllExpectations.containsKey(name)) {
42 throw new Exception("Expectation.byName(name='$name'): Invalid name."); 43 throw new Exception("Expectation.byName(name='$name'): Invalid name.");
43 } 44 }
44 return _AllExpectations[name]; 45 return _AllExpectations[name];
45 } 46 }
(...skipping 19 matching lines...) Expand all
65 build("MissingCompileTimeError", group: fail); 66 build("MissingCompileTimeError", group: fail);
66 build("MissingRuntimeError", group: fail); 67 build("MissingRuntimeError", group: fail);
67 build("CompileTimeError", group: fail); 68 build("CompileTimeError", group: fail);
68 build("RuntimeError", group: fail); 69 build("RuntimeError", group: fail);
69 70
70 build("MissingStaticWarning", group: fail); 71 build("MissingStaticWarning", group: fail);
71 build("StaticWarning", group: fail); 72 build("StaticWarning", group: fail);
72 73
73 build("PubGetError", group: fail); 74 build("PubGetError", group: fail);
74 75
75 build("Skip", isMetaExpectation: true); 76 var skip = build("Skip", isMetaExpectation: true);
76 build("SkipByDesign", isMetaExpectation: true); 77 build("SkipByDesign", isMetaExpectation: true);
78 build("SkipSlow", group: skip, isMetaExpectation: true);
77 build("Ok", isMetaExpectation: true); 79 build("Ok", isMetaExpectation: true);
78 build("Slow", isMetaExpectation: true); 80 build("Slow", isMetaExpectation: true);
79 } 81 }
80 } 82 }
81 83
82 final String prettyName; 84 final String prettyName;
83 final String name; 85 final String name;
84 final Expectation group; 86 final Expectation group;
85 // Indicates whether this expectation cannot be a test outcome (i.e. it is a 87 // Indicates whether this expectation cannot be a test outcome (i.e. it is a
86 // "meta marker"). 88 // "meta marker").
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 } 344 }
343 regExps[i] = regExp; 345 regExps[i] = regExp;
344 } 346 }
345 _keyToRegExps[key] = regExps; 347 _keyToRegExps[key] = regExps;
346 }); 348 });
347 349
348 _regExpCache = null; 350 _regExpCache = null;
349 _preprocessed = true; 351 _preprocessed = true;
350 } 352 }
351 } 353 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698