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

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

Issue 10227016: test.dart: print suite name in browser tests (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
« no previous file with comments | « no previous file | 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 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 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 dartFlags.add("--enable_type_checks"); 648 dartFlags.add("--enable_type_checks");
649 } 649 }
650 dartFlags.addAll(vmOptions); 650 dartFlags.addAll(vmOptions);
651 args.add('--dart-flags=${Strings.join(dartFlags, " ")}'); 651 args.add('--dart-flags=${Strings.join(dartFlags, " ")}');
652 } 652 }
653 args.add(htmlPath); 653 args.add(htmlPath);
654 } 654 }
655 commands.add(new Command('python', args)); 655 commands.add(new Command('python', args));
656 656
657 // Create BrowserTestCase and queue it. 657 // Create BrowserTestCase and queue it.
658 var testCase = new BrowserTestCase(testName, commands, configuration, 658 var testCase = new BrowserTestCase('$suiteName/$testName',
659 completeHandler, expectations, optionsFromFile['isNegative']); 659 commands, configuration, completeHandler, expectations,
660 optionsFromFile['isNegative']);
660 doTest(testCase); 661 doTest(testCase);
661 } 662 }
662 } 663 }
663 664
664 /** Helper to create a compilation command for a single input file. */ 665 /** Helper to create a compilation command for a single input file. */
665 Command _compileCommand(String inputFile, String outputFile, 666 Command _compileCommand(String inputFile, String outputFile,
666 String compiler, String dir, var vmOptions) { 667 String compiler, String dir, var vmOptions) {
667 String executable = TestUtils.compilerPath(configuration); 668 String executable = TestUtils.compilerPath(configuration);
668 List<String> args = TestUtils.standardOptions(configuration); 669 List<String> args = TestUtils.standardOptions(configuration);
669 switch (compiler) { 670 switch (compiler) {
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
1367 * $noCrash tests are expected to be flaky but not crash 1368 * $noCrash tests are expected to be flaky but not crash
1368 * $pass tests are expected to pass 1369 * $pass tests are expected to pass
1369 * $failOk tests are expected to fail that we won't fix 1370 * $failOk tests are expected to fail that we won't fix
1370 * $fail tests are expected to fail that we should fix 1371 * $fail tests are expected to fail that we should fix
1371 * $crash tests are expected to crash that we should fix 1372 * $crash tests are expected to crash that we should fix
1372 * $timeout tests are allowed to timeout 1373 * $timeout tests are allowed to timeout
1373 """; 1374 """;
1374 print(report); 1375 print(report);
1375 } 1376 }
1376 } 1377 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698