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

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

Issue 2850783002: Dart SDK Spelling b, c, and d. (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « tools/testing/dart/runtime_configuration.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) 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 /** 5 /**
6 * Classes and methods for executing tests. 6 * Classes and methods for executing tests.
7 * 7 *
8 * This module includes: 8 * This module includes:
9 * - Managing parallel execution of tests, including timeout checks. 9 * - Managing parallel execution of tests, including timeout checks.
10 * - Evaluating the output of each test as pass/fail/crash/timeout. 10 * - Evaluating the output of each test as pass/fail/crash/timeout.
(...skipping 1441 matching lines...) Expand 10 before | Expand all | Expand 10 after
1452 if (warnings.length > 0) { 1452 if (warnings.length > 0) {
1453 return Expectation.STATIC_WARNING; 1453 return Expectation.STATIC_WARNING;
1454 } 1454 }
1455 1455
1456 assert(errors.length == 0 && warnings.length == 0); 1456 assert(errors.length == 0 && warnings.length == 0);
1457 assert(!testCase.hasCompileError && !testCase.hasStaticWarning); 1457 assert(!testCase.hasCompileError && !testCase.hasStaticWarning);
1458 return Expectation.PASS; 1458 return Expectation.PASS;
1459 } 1459 }
1460 1460
1461 void parseAnalyzerOutput(List<String> outErrors, List<String> outWarnings) { 1461 void parseAnalyzerOutput(List<String> outErrors, List<String> outWarnings) {
1462 // Parse a line delimited by the | character using \ as an escape charager 1462 // Parse a line delimited by the | character using \ as an escape character
1463 // like: FOO|BAR|FOO\|BAR|FOO\\BAZ as 4 fields: FOO BAR FOO|BAR FOO\BAZ 1463 // like: FOO|BAR|FOO\|BAR|FOO\\BAZ as 4 fields: FOO BAR FOO|BAR FOO\BAZ
1464 List<String> splitMachineError(String line) { 1464 List<String> splitMachineError(String line) {
1465 StringBuffer field = new StringBuffer(); 1465 StringBuffer field = new StringBuffer();
1466 List<String> result = []; 1466 List<String> result = [];
1467 bool escaped = false; 1467 bool escaped = false;
1468 for (var i = 0; i < line.length; i++) { 1468 for (var i = 0; i < line.length; i++) {
1469 var c = line[i]; 1469 var c = line[i];
1470 if (!escaped && c == '\\') { 1470 if (!escaped && c == '\\') {
1471 escaped = true; 1471 escaped = true;
1472 continue; 1472 continue;
(...skipping 1616 matching lines...) Expand 10 before | Expand all | Expand 10 after
3089 eventAllTestsKnown(); 3089 eventAllTestsKnown();
3090 }); 3090 });
3091 } 3091 }
3092 3092
3093 var testCaseEnqueuer; 3093 var testCaseEnqueuer;
3094 CommandQueue commandQueue; 3094 CommandQueue commandQueue;
3095 3095
3096 void setupForRunning(TestCaseEnqueuer testCaseEnqueuer) { 3096 void setupForRunning(TestCaseEnqueuer testCaseEnqueuer) {
3097 Timer _debugTimer; 3097 Timer _debugTimer;
3098 // If we haven't seen a single test finishing during a 10 minute period 3098 // If we haven't seen a single test finishing during a 10 minute period
3099 // something is definitly wrong, so we dump the debugging information. 3099 // something is definitely wrong, so we dump the debugging information.
3100 final debugTimerDuration = const Duration(minutes: 10); 3100 final debugTimerDuration = const Duration(minutes: 10);
3101 3101
3102 void cancelDebugTimer() { 3102 void cancelDebugTimer() {
3103 if (_debugTimer != null) { 3103 if (_debugTimer != null) {
3104 _debugTimer.cancel(); 3104 _debugTimer.cancel();
3105 } 3105 }
3106 } 3106 }
3107 3107
3108 void resetDebugTimer() { 3108 void resetDebugTimer() {
3109 cancelDebugTimer(); 3109 cancelDebugTimer();
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
3241 } 3241 }
3242 } 3242 }
3243 3243
3244 void eventAllTestsDone() { 3244 void eventAllTestsDone() {
3245 for (var listener in _eventListener) { 3245 for (var listener in _eventListener) {
3246 listener.allDone(); 3246 listener.allDone();
3247 } 3247 }
3248 _allDone(); 3248 _allDone();
3249 } 3249 }
3250 } 3250 }
OLDNEW
« no previous file with comments | « tools/testing/dart/runtime_configuration.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698