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

Unified Diff: test/testing.dart

Issue 22962005: Merge pull request #581 from kevmoo/polymer (Closed) Base URL: https://github.com/dart-lang/web-ui.git@polymer
Patch Set: Created 7 years, 4 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 | « test/run_all.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/testing.dart
diff --git a/test/testing.dart b/test/testing.dart
index 9ef41badafd130e908c79573e40b052f87ab8bf6..5af7b27e672d0f3a06b097925ffc1da56de193f7 100644
--- a/test/testing.dart
+++ b/test/testing.dart
@@ -64,14 +64,16 @@ Map<String, FileInfo> analyzeFiles(List<SourceFile> files,
var uniqueIds = new IntIterator();
var pseudoElements = new Map();
for (var file in files) {
- analyzeFile(file, result, uniqueIds, pseudoElements, messages);
+ analyzeFile(file, result, uniqueIds, pseudoElements, messages, true);
}
return result;
}
-Compiler createCompiler(Map files, Messages messages, {bool errors: false}) {
+Compiler createCompiler(Map files, Messages messages, {bool errors: false,
+ bool scopedCss: false}) {
List baseOptions = ['--no-colors', '-o', 'out', 'index.html'];
if (errors) baseOptions.insert(0, '--warnings_as_errors');
+ if (scopedCss) baseOptions.insert(0, '--scoped-css');
var options = CompilerOptions.parse(baseOptions);
var fs = new MockFileSystem(files);
return new Compiler(fs, options, messages);
« no previous file with comments | « test/run_all.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698