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

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

Issue 8992007: Make the repeating argument to timers optional. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments. Created 9 years 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
« no previous file with comments | « tools/testing/dart/test_runner.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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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_suite"); 5 #library("test_suite");
6 6
7 #import("status_file_parser.dart"); 7 #import("status_file_parser.dart");
8 #import("test_runner.dart"); 8 #import("test_runner.dart");
9 #import("multitest.dart"); 9 #import("multitest.dart");
10 10
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 processDirectory(); 187 processDirectory();
188 } else { 188 } else {
189 // We rely on enqueueing completing asynchronously so use a 189 // We rely on enqueueing completing asynchronously so use a
190 // timer to make it so. 190 // timer to make it so.
191 void enqueueCachedTests(Timer ignore) { 191 void enqueueCachedTests(Timer ignore) {
192 for (var info in testCache[suiteName]) { 192 for (var info in testCache[suiteName]) {
193 enqueueTestCaseFromTestInformation(info); 193 enqueueTestCaseFromTestInformation(info);
194 } 194 }
195 doDone(); 195 doDone();
196 } 196 }
197 new Timer(enqueueCachedTests, 0, false); 197 new Timer(enqueueCachedTests, 0);
198 } 198 }
199 } 199 }
200 } 200 }
201 201
202 // Read test expectations from status files. 202 // Read test expectations from status files.
203 testExpectations = 203 testExpectations =
204 new TestExpectations(complexMatching: complexStatusMatching()); 204 new TestExpectations(complexMatching: complexStatusMatching());
205 for (var statusFilePath in statusFilePaths) { 205 for (var statusFilePath in statusFilePaths) {
206 ReadTestExpectationsInto(testExpectations, 206 ReadTestExpectationsInto(testExpectations,
207 statusFilePath, 207 statusFilePath,
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 * $noCrash tests are expected to be flaky but not crash 722 * $noCrash tests are expected to be flaky but not crash
723 * $pass tests are expected to pass 723 * $pass tests are expected to pass
724 * $failOk tests are expected to fail that we won't fix 724 * $failOk tests are expected to fail that we won't fix
725 * $fail tests are expected to fail that we should fix 725 * $fail tests are expected to fail that we should fix
726 * $crash tests are expected to crash that we should fix 726 * $crash tests are expected to crash that we should fix
727 * $timeout tests are allowed to timeout\ 727 * $timeout tests are allowed to timeout\
728 """; 728 """;
729 print(report); 729 print(report);
730 } 730 }
731 } 731 }
OLDNEW
« no previous file with comments | « tools/testing/dart/test_runner.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698