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

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

Issue 196723017: Fix polymer tests and a couple bugs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/polymer/test/build/import_inliner_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/test/build/linter_test.dart
diff --git a/pkg/polymer/test/build/linter_test.dart b/pkg/polymer/test/build/linter_test.dart
index ab6ff85f3a0241e9daf4cf4cc66b994980c57609..e302915c0217ee17d6915d1d1becd362457a0f44 100644
--- a/pkg/polymer/test/build/linter_test.dart
+++ b/pkg/polymer/test/build/linter_test.dart
@@ -460,6 +460,8 @@ void main() {
_testLinter(String name, Map inputFiles, List outputMessages) {
var linter = new Linter(new TransformOptions());
var outputFiles = {};
- inputFiles.forEach((k, v) => outputFiles[k] = v);
+ if (outputMessages.every((m) => m.startsWith('warning:'))) {
+ inputFiles.forEach((k, v) => outputFiles[k] = v);
+ }
testPhases(name, [[linter]], inputFiles, outputFiles, outputMessages);
}
« no previous file with comments | « pkg/polymer/test/build/import_inliner_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698