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

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

Issue 9813012: Add "mock" compilation feature to dart2js and use it to improve test coverage. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 9 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 1155 matching lines...) Expand 10 before | Expand all | Expand 10 after
1166 args.add('--enable_asserts'); 1166 args.add('--enable_asserts');
1167 args.add("--enable_type_checks"); 1167 args.add("--enable_type_checks");
1168 } 1168 }
1169 if (configuration["component"] == "dart2js" 1169 if (configuration["component"] == "dart2js"
1170 || configuration["component"] == "legium") { 1170 || configuration["component"] == "legium") {
1171 args.add("--verbose"); 1171 args.add("--verbose");
1172 args.add("--leg"); 1172 args.add("--leg");
1173 if (configuration["host_checked"]) { 1173 if (configuration["host_checked"]) {
1174 args.add("--vm_flags=--enable_asserts --enable_type_checks"); 1174 args.add("--vm_flags=--enable_asserts --enable_type_checks");
1175 } 1175 }
1176 if (configuration["component"] == "dart2js") {
1177 args.add("--allow-mock-compilation");
1178 }
1176 } 1179 }
1177 return args; 1180 return args;
1178 } 1181 }
1179 1182
1180 static bool isBrowserComponent(String component) => 1183 static bool isBrowserComponent(String component) =>
1181 const <String>['dartium', 1184 const <String>['dartium',
1182 'frogium', 1185 'frogium',
1183 'legium', 1186 'legium',
1184 'webdriver'].some((x) => x == component); 1187 'webdriver'].some((x) => x == component);
1185 } 1188 }
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
1228 * $noCrash tests are expected to be flaky but not crash 1231 * $noCrash tests are expected to be flaky but not crash
1229 * $pass tests are expected to pass 1232 * $pass tests are expected to pass
1230 * $failOk tests are expected to fail that we won't fix 1233 * $failOk tests are expected to fail that we won't fix
1231 * $fail tests are expected to fail that we should fix 1234 * $fail tests are expected to fail that we should fix
1232 * $crash tests are expected to crash that we should fix 1235 * $crash tests are expected to crash that we should fix
1233 * $timeout tests are allowed to timeout 1236 * $timeout tests are allowed to timeout
1234 """; 1237 """;
1235 print(report); 1238 print(report);
1236 } 1239 }
1237 } 1240 }
OLDNEW
« dart/samples/tests/samples/samples-leg.status ('K') | « dart/tests/standalone/standalone-leg.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698