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

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

Issue 24168006: Fixing issues from lifecycle events CL (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 | « tests/html/html.status ('k') | 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 973 matching lines...) Expand 10 before | Expand all | Expand 10 after
984 // browser test. For running Dart in DRT, this will be noop commands. 984 // browser test. For running Dart in DRT, this will be noop commands.
985 List<Command> commands = []; 985 List<Command> commands = [];
986 986
987 // Use existing HTML document if available. 987 // Use existing HTML document if available.
988 String htmlPath; 988 String htmlPath;
989 if (customHtml.existsSync()) { 989 if (customHtml.existsSync()) {
990 990
991 // If necessary, run the Polymer deploy steps. 991 // If necessary, run the Polymer deploy steps.
992 // TODO(jmesserly): this should be generalized for any tests that 992 // TODO(jmesserly): this should be generalized for any tests that
993 // require Pub deploy, not just polymer. 993 // require Pub deploy, not just polymer.
994 if (compiler != 'none' && 994 if (customHtml.readAsStringSync().contains('polymer/boot.js')) {
995 customHtml.readAsStringSync().contains('polymer/boot.js')) { 995 if (compiler != 'none') {
996 commands.add(_polymerDeployCommand(
997 customHtmlPath, tempDir, optionsFromFile));
996 998
997 commands.add(_polymerDeployCommand( 999 htmlPath = '$tempDir/test/$nameNoExt.html';
998 customHtmlPath, tempDir, optionsFromFile)); 1000 dartWrapperFilename = '${htmlPath}_bootstrap.dart';
999 1001 compiledDartWrapperFilename = '$dartWrapperFilename.js';
1000 htmlPath = '$tempDir/test/$nameNoExt.html'; 1002 } else {
1001 dartWrapperFilename = '${htmlPath}_bootstrap.dart'; 1003 htmlPath = customHtmlPath;
1002 compiledDartWrapperFilename = '$dartWrapperFilename.js'; 1004 }
1003 } else { 1005 } else {
1004 htmlPath = '$tempDir/test.html'; 1006 htmlPath = '$tempDir/test.html';
1005 dartWrapperFilename = filePath.toNativePath(); 1007 dartWrapperFilename = filePath.toNativePath();
1006 1008
1007 var htmlContents = customHtml.readAsStringSync(); 1009 var htmlContents = customHtml.readAsStringSync();
1008 if (compiler == 'none') { 1010 if (compiler == 'none') {
1009 htmlContents = htmlContents.replaceAll('%TEST_SCRIPTS%', 1011 htmlContents = htmlContents.replaceAll('%TEST_SCRIPTS%',
1010 '<script type="application/dart" ' 1012 '<script type="application/dart" '
1011 'src="${_createUrlPathFromFile(filePath)}"></script>\n' 1013 'src="${_createUrlPathFromFile(filePath)}"></script>\n'
1012 '<script type="text/javascript" ' 1014 '<script type="text/javascript" '
(...skipping 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after
2046 * $pass tests are expected to pass 2048 * $pass tests are expected to pass
2047 * $failOk tests are expected to fail that we won't fix 2049 * $failOk tests are expected to fail that we won't fix
2048 * $fail tests are expected to fail that we should fix 2050 * $fail tests are expected to fail that we should fix
2049 * $crash tests are expected to crash that we should fix 2051 * $crash tests are expected to crash that we should fix
2050 * $timeout tests are allowed to timeout 2052 * $timeout tests are allowed to timeout
2051 * $compileErrorSkip tests are skipped on browsers due to compile-time error 2053 * $compileErrorSkip tests are skipped on browsers due to compile-time error
2052 """; 2054 """;
2053 print(report); 2055 print(report);
2054 } 2056 }
2055 } 2057 }
OLDNEW
« no previous file with comments | « tests/html/html.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698