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

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

Issue 10264005: Suppress get_drt/dartium download if an executable is provided via flag (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 | 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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 bool listRecursively() => _listRecursive; 273 bool listRecursively() => _listRecursive;
274 274
275 String shellPath() => TestUtils.dartShellFileName(configuration); 275 String shellPath() => TestUtils.dartShellFileName(configuration);
276 276
277 List<String> additionalOptions(String filename) => []; 277 List<String> additionalOptions(String filename) => [];
278 278
279 void forEachTest(Function onTest, Map testCache, String globalTempDir(), 279 void forEachTest(Function onTest, Map testCache, String globalTempDir(),
280 [Function onDone = null]) { 280 [Function onDone = null]) {
281 // If DumpRenderTree/Dartium is required, and not yet updated, 281 // If DumpRenderTree/Dartium is required, and not yet updated,
282 // wait for update. 282 // wait for update.
283 var updater = runtimeUpdater(configuration['runtime']); 283 var updater = runtimeUpdater(configuration);
284 if (updater !== null && !updater.updated) { 284 if (updater !== null && !updater.updated) {
285 Expect.isTrue(updater.isActive); 285 Expect.isTrue(updater.isActive);
286 updater.onUpdated.add(() { 286 updater.onUpdated.add(() {
287 forEachTest(onTest, testCache, globalTempDir, onDone); 287 forEachTest(onTest, testCache, globalTempDir, onDone);
288 }); 288 });
289 return; 289 return;
290 } 290 }
291 291
292 doTest = onTest; 292 doTest = onTest;
293 doDone = (onDone != null) ? onDone : (() => null); 293 doDone = (onDone != null) ? onDone : (() => null);
(...skipping 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after
1393 * $noCrash tests are expected to be flaky but not crash 1393 * $noCrash tests are expected to be flaky but not crash
1394 * $pass tests are expected to pass 1394 * $pass tests are expected to pass
1395 * $failOk tests are expected to fail that we won't fix 1395 * $failOk tests are expected to fail that we won't fix
1396 * $fail tests are expected to fail that we should fix 1396 * $fail tests are expected to fail that we should fix
1397 * $crash tests are expected to crash that we should fix 1397 * $crash tests are expected to crash that we should fix
1398 * $timeout tests are allowed to timeout 1398 * $timeout tests are allowed to timeout
1399 """; 1399 """;
1400 print(report); 1400 print(report);
1401 } 1401 }
1402 } 1402 }
OLDNEW
« tools/testing/dart/drt_updater.dart ('K') | « tools/testing/dart/test_options.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698