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

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

Issue 10836241: Move unittest from lib to pkg. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 | « tools/testing/dart/browser_test.dart ('k') | utils/apidoc/apidoc.dart » ('j') | 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 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 Path expectedOutput = null; 614 Path expectedOutput = null;
615 if (new File.fromPath(pngPath).existsSync()) { 615 if (new File.fromPath(pngPath).existsSync()) {
616 expectedOutput = pngPath; 616 expectedOutput = pngPath;
617 content = getHtmlLayoutContents(scriptType, '$filePrefix$scriptPath'); 617 content = getHtmlLayoutContents(scriptType, '$filePrefix$scriptPath');
618 } else if (new File.fromPath(txtPath).existsSync()) { 618 } else if (new File.fromPath(txtPath).existsSync()) {
619 expectedOutput = txtPath; 619 expectedOutput = txtPath;
620 content = getHtmlLayoutContents(scriptType, '$filePrefix$scriptPath'); 620 content = getHtmlLayoutContents(scriptType, '$filePrefix$scriptPath');
621 } else { 621 } else {
622 content = getHtmlContents( 622 content = getHtmlContents(
623 filename, 623 filename,
624 '$filePrefix${dartDir.append("lib/unittest/test_controller.js")}', 624 '$filePrefix${dartDir.append("pkg/unittest/test_controller.js")}',
625 '$filePrefix${dartDir.append("client/dart.js")}', 625 '$filePrefix${dartDir.append("client/dart.js")}',
626 scriptType, 626 scriptType,
627 '$filePrefix$scriptPath'); 627 '$filePrefix$scriptPath');
628 } 628 }
629 htmlTest.writeStringSync(content); 629 htmlTest.writeStringSync(content);
630 htmlTest.closeSync(); 630 htmlTest.closeSync();
631 631
632 // Construct the command(s) that compile all the inputs needed by the 632 // Construct the command(s) that compile all the inputs needed by the
633 // browser test. For running Dart in DRT, this will be noop commands. 633 // browser test. For running Dart in DRT, this will be noop commands.
634 List<Command> commands = []; 634 List<Command> commands = [];
(...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after
1429 * $noCrash tests are expected to be flaky but not crash 1429 * $noCrash tests are expected to be flaky but not crash
1430 * $pass tests are expected to pass 1430 * $pass tests are expected to pass
1431 * $failOk tests are expected to fail that we won't fix 1431 * $failOk tests are expected to fail that we won't fix
1432 * $fail tests are expected to fail that we should fix 1432 * $fail tests are expected to fail that we should fix
1433 * $crash tests are expected to crash that we should fix 1433 * $crash tests are expected to crash that we should fix
1434 * $timeout tests are allowed to timeout 1434 * $timeout tests are allowed to timeout
1435 """; 1435 """;
1436 print(report); 1436 print(report);
1437 } 1437 }
1438 } 1438 }
OLDNEW
« no previous file with comments | « tools/testing/dart/browser_test.dart ('k') | utils/apidoc/apidoc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698