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

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

Issue 10917275: Update unittest to new package layout. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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/tests/archive/reader_test.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 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 Path expectedOutput = null; 629 Path expectedOutput = null;
630 if (new File.fromPath(pngPath).existsSync()) { 630 if (new File.fromPath(pngPath).existsSync()) {
631 expectedOutput = pngPath; 631 expectedOutput = pngPath;
632 content = getHtmlLayoutContents(scriptType, '$filePrefix$scriptPath'); 632 content = getHtmlLayoutContents(scriptType, '$filePrefix$scriptPath');
633 } else if (new File.fromPath(txtPath).existsSync()) { 633 } else if (new File.fromPath(txtPath).existsSync()) {
634 expectedOutput = txtPath; 634 expectedOutput = txtPath;
635 content = getHtmlLayoutContents(scriptType, '$filePrefix$scriptPath'); 635 content = getHtmlLayoutContents(scriptType, '$filePrefix$scriptPath');
636 } else { 636 } else {
637 content = getHtmlContents( 637 content = getHtmlContents(
638 filename, 638 filename,
639 '$filePrefix${dartDir.append("pkg/unittest/test_controller.js")}', 639 '$filePrefix'
640 '${dartDir.append("pkg/unittest/static/test_controller.js")}',
640 '$filePrefix${dartDir.append("client/dart.js")}', 641 '$filePrefix${dartDir.append("client/dart.js")}',
641 scriptType, 642 scriptType,
642 '$filePrefix$scriptPath'); 643 '$filePrefix$scriptPath');
643 } 644 }
644 htmlTest.writeStringSync(content); 645 htmlTest.writeStringSync(content);
645 htmlTest.closeSync(); 646 htmlTest.closeSync();
646 647
647 // Construct the command(s) that compile all the inputs needed by the 648 // Construct the command(s) that compile all the inputs needed by the
648 // browser test. For running Dart in DRT, this will be noop commands. 649 // browser test. For running Dart in DRT, this will be noop commands.
649 List<Command> commands = []; 650 List<Command> commands = [];
(...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after
1422 * $noCrash tests are expected to be flaky but not crash 1423 * $noCrash tests are expected to be flaky but not crash
1423 * $pass tests are expected to pass 1424 * $pass tests are expected to pass
1424 * $failOk tests are expected to fail that we won't fix 1425 * $failOk tests are expected to fail that we won't fix
1425 * $fail tests are expected to fail that we should fix 1426 * $fail tests are expected to fail that we should fix
1426 * $crash tests are expected to crash that we should fix 1427 * $crash tests are expected to crash that we should fix
1427 * $timeout tests are allowed to timeout 1428 * $timeout tests are allowed to timeout
1428 """; 1429 """;
1429 print(report); 1430 print(report);
1430 } 1431 }
1431 } 1432 }
OLDNEW
« no previous file with comments | « tools/testing/dart/browser_test.dart ('k') | utils/tests/archive/reader_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698