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

Unified Diff: pkg/polymer/test/transform/script_compactor_test.dart

Issue 23898009: Switch polymer's build.dart to use the new linter. This CL does the following (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: addressing john comments (part 2) - renamed files Created 7 years, 3 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/transform/polyfill_injector_test.dart ('k') | samples/third_party/todomvc/build.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/test/transform/script_compactor_test.dart
diff --git a/pkg/polymer/test/transform/script_compactor_test.dart b/pkg/polymer/test/transform/script_compactor_test.dart
index 1588bd10d0faca47d35c8169505292d5099dfc19..71a86f29c42994a3f94514a0402b3df9d39c470e 100644
--- a/pkg/polymer/test/transform/script_compactor_test.dart
+++ b/pkg/polymer/test/transform/script_compactor_test.dart
@@ -4,6 +4,7 @@
library polymer.test.transform.script_compactor_test;
+import 'package:polymer/src/transform/common.dart';
import 'package:polymer/src/transform/script_compactor.dart';
import 'package:unittest/compact_vm_config.dart';
@@ -11,14 +12,15 @@ import 'common.dart';
void main() {
useCompactVMConfiguration();
+ var phases = [[new ScriptCompactor(new TransformOptions())]];
- testPhases('no changes', [[new ScriptCompactor()]], {
+ testPhases('no changes', phases, {
'a|web/test.html': '<!DOCTYPE html><html></html>',
}, {
'a|web/test.html': '<!DOCTYPE html><html></html>',
});
- testPhases('no changes outside web/', [[new ScriptCompactor()]], {
+ testPhases('no changes outside web/', phases, {
'a|lib/test.html':
'<!DOCTYPE html><html><head>'
'<script type="application/dart" src="a.dart"></script>',
@@ -28,7 +30,7 @@ void main() {
'<script type="application/dart" src="a.dart"></script>',
});
- testPhases('single script', [[new ScriptCompactor()]], {
+ testPhases('single script', phases, {
'a|web/test.html':
'<!DOCTYPE html><html><head>'
'<script type="application/dart" src="a.dart"></script>',
@@ -56,7 +58,7 @@ void main() {
'''.replaceAll('\n ', '\n'),
});
- testPhases('several scripts', [[new ScriptCompactor()]], {
+ testPhases('several scripts', phases, {
'a|web/test.html':
'<!DOCTYPE html><html><head>'
'<script type="application/dart" src="a.dart"></script>'
« no previous file with comments | « pkg/polymer/test/transform/polyfill_injector_test.dart ('k') | samples/third_party/todomvc/build.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698