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); |