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

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

Issue 9621015: Multitest annotations now accept multiple annotations on one line. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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 /** 5 /**
6 * Classes and methods for enumerating and preparing tests. 6 * Classes and methods for enumerating and preparing tests.
7 * 7 *
8 * This library includes: 8 * This library includes:
9 * 9 *
10 * - Creating tests by listing all the Dart files in certain directories, 10 * - Creating tests by listing all the Dart files in certain directories,
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 171
172 172
173 class TestInformation { 173 class TestInformation {
174 String filename; 174 String filename;
175 Map optionsFromFile; 175 Map optionsFromFile;
176 bool isNegative; 176 bool isNegative;
177 bool isNegativeIfChecked; 177 bool isNegativeIfChecked;
178 bool hasFatalTypeErrors; 178 bool hasFatalTypeErrors;
179 bool hasRuntimeErrors; 179 bool hasRuntimeErrors;
180 // expected outcome from multi-test "static type error", "compile-time error" , etc 180 // expected outcome from multi-test "static type error", "compile-time error" , etc
181 String multitestOutcome; 181 Set<String> multitestOutcome;
182 182
183 TestInformation(this.filename, this.optionsFromFile, this.isNegative, 183 TestInformation(this.filename, this.optionsFromFile, this.isNegative,
184 this.isNegativeIfChecked, this.hasFatalTypeErrors, 184 this.isNegativeIfChecked, this.hasFatalTypeErrors,
185 this.hasRuntimeErrors, this.multitestOutcome); 185 this.hasRuntimeErrors, this.multitestOutcome);
186 } 186 }
187 187
188 /** 188 /**
189 * A standard [TestSuite] implementation that searches for tests in a 189 * A standard [TestSuite] implementation that searches for tests in a
190 * directory, and creates [TestCase]s that compile and/or run them. 190 * directory, and creates [TestCase]s that compile and/or run them.
191 */ 191 */
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 } 363 }
364 } 364 }
365 } 365 }
366 366
367 Function makeTestCaseCreator(Map optionsFromFile) { 367 Function makeTestCaseCreator(Map optionsFromFile) {
368 return (String filename, 368 return (String filename,
369 bool isNegative, 369 bool isNegative,
370 [bool isNegativeIfChecked = false, 370 [bool isNegativeIfChecked = false,
371 bool hasFatalTypeErrors = false, 371 bool hasFatalTypeErrors = false,
372 bool hasRuntimeErrors = false, 372 bool hasRuntimeErrors = false,
373 String multitestOutcome = null]) { 373 Set<String> multitestOutcome = null]) {
374 // Cache the test information for each test case. 374 // Cache the test information for each test case.
375 var info = new TestInformation(filename, 375 var info = new TestInformation(filename,
376 optionsFromFile, 376 optionsFromFile,
377 isNegative, 377 isNegative,
378 isNegativeIfChecked, 378 isNegativeIfChecked,
379 hasFatalTypeErrors, 379 hasFatalTypeErrors,
380 hasRuntimeErrors, 380 hasRuntimeErrors,
381 multitestOutcome); 381 multitestOutcome);
382 cachedTests.add(info); 382 cachedTests.add(info);
383 enqueueTestCaseFromTestInformation(info); 383 enqueueTestCaseFromTestInformation(info);
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after
1216 * $noCrash tests are expected to be flaky but not crash 1216 * $noCrash tests are expected to be flaky but not crash
1217 * $pass tests are expected to pass 1217 * $pass tests are expected to pass
1218 * $failOk tests are expected to fail that we won't fix 1218 * $failOk tests are expected to fail that we won't fix
1219 * $fail tests are expected to fail that we should fix 1219 * $fail tests are expected to fail that we should fix
1220 * $crash tests are expected to crash that we should fix 1220 * $crash tests are expected to crash that we should fix
1221 * $timeout tests are allowed to timeout 1221 * $timeout tests are allowed to timeout
1222 """; 1222 """;
1223 print(report); 1223 print(report);
1224 } 1224 }
1225 } 1225 }
OLDNEW
« tools/testing/dart/test_runner.dart ('K') | « tools/testing/dart/test_runner.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698