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

Unified Diff: pkg/polymer/test/build/common.dart

Issue 180933002: combine script extractor and import inliner (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix multiple linked scripts Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/polymer/test/build/code_extractor_test.dart ('k') | pkg/polymer/test/build/import_inliner_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/test/build/common.dart
diff --git a/pkg/polymer/test/build/common.dart b/pkg/polymer/test/build/common.dart
index be187ca393c39e34f43767dd4cdb08eac15e3ceb..91e6b11a76472965b4f235a83366ee4d9b63cab8 100644
--- a/pkg/polymer/test/build/common.dart
+++ b/pkg/polymer/test/build/common.dart
@@ -123,10 +123,10 @@ class TestHelper implements PackageProvider {
testPhases(String testName, List<List<Transformer>> phases,
Map<String, String> inputFiles, Map<String, String> expectedFiles,
- [List<String> expectedMessages]) {
- test(testName, () {
+ [List<String> expectedMessages, bool solo = false]) {
+ (solo ? solo_test : test)(testName, () {
var helper = new TestHelper(phases, inputFiles, expectedMessages)..run();
- return helper.checkAll(expectedFiles).then((_) => helper.tearDown());
+ return helper.checkAll(expectedFiles).whenComplete(() => helper.tearDown());
});
}
« no previous file with comments | « pkg/polymer/test/build/code_extractor_test.dart ('k') | pkg/polymer/test/build/import_inliner_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698