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

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

Issue 23702055: test.py: Support for CompileTimeError,RuntimeError,MissingRuntimeError,MissingCompiletimeError mark… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 test_progress; 5 library test_progress;
6 6
7 import "dart:async"; 7 import "dart:async";
8 import "dart:io"; 8 import "dart:io";
9 import "dart:io" as io; 9 import "dart:io" as io;
10 import "http_server.dart" as http_server; 10 import "http_server.dart" as http_server;
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 class ExitCodeSetter extends EventListener { 171 class ExitCodeSetter extends EventListener {
172 void done(TestCase test) { 172 void done(TestCase test) {
173 if (test.unexpectedOutput) { 173 if (test.unexpectedOutput) {
174 io.exitCode = 1; 174 io.exitCode = 1;
175 } 175 }
176 } 176 }
177 } 177 }
178 178
179 class FlakyLogWriter extends EventListener { 179 class FlakyLogWriter extends EventListener {
180 void done(TestCase test) { 180 void done(TestCase test) {
181 if (test.isFlaky && test.result != PASS) { 181 if (test.isFlaky && test.result != Expectation.PASS) {
182 var buf = new StringBuffer(); 182 var buf = new StringBuffer();
183 for (var l in _buildFailureOutput(test)) { 183 for (var l in _buildFailureOutput(test)) {
184 buf.write("$l\n"); 184 buf.write("$l\n");
185 } 185 }
186 _appendToFlakyFile(buf.toString()); 186 _appendToFlakyFile(buf.toString());
187 } 187 }
188 } 188 }
189 189
190 void _appendToFlakyFile(String msg) { 190 void _appendToFlakyFile(String msg) {
191 var file = new File(TestUtils.flakyFileName()); 191 var file = new File(TestUtils.flakyFileName());
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 return new VerboseProgressIndicator(startTime); 557 return new VerboseProgressIndicator(startTime);
558 case 'status': 558 case 'status':
559 return new ProgressIndicator(startTime); 559 return new ProgressIndicator(startTime);
560 case 'buildbot': 560 case 'buildbot':
561 return new BuildbotProgressIndicator(startTime); 561 return new BuildbotProgressIndicator(startTime);
562 default: 562 default:
563 assert(false); 563 assert(false);
564 break; 564 break;
565 } 565 }
566 } 566 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698