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

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

Issue 47933006: Build fixes: adds arguments to the pub-build plugin to configure whether 'js' (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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
Index: pkg/polymer/test/build/script_compactor_test.dart
diff --git a/pkg/polymer/test/build/script_compactor_test.dart b/pkg/polymer/test/build/script_compactor_test.dart
index 32bd762499d2a8dd24b1c1b8c231848c41efc488..946c90d35e96ce34374f6446f21b1db52f00ac48 100644
--- a/pkg/polymer/test/build/script_compactor_test.dart
+++ b/pkg/polymer/test/build/script_compactor_test.dart
@@ -36,6 +36,7 @@ void main() {
'<!DOCTYPE html><html><head>'
'<script type="application/dart" src="a.dart"></script>',
'a|web/test.html.scriptUrls': '[]',
+ 'a|web/a.dart': 'library a;\nmain(){}',
}, {
'a|web/test.html':
'<!DOCTYPE html><html><head>'
@@ -45,15 +46,19 @@ void main() {
'a|web/test.html_bootstrap.dart':
'''$MAIN_HEADER
- import 'a.dart' as i0;
+ import 'a.dart_modified.dart' as i0;
void main() {
configureForDeployment([
- 'a.dart',
+ 'a.dart_modified.dart',
]);
- i0.main();
+ i0.polymerMainWrapper();
}
'''.replaceAll('\n ', '\n'),
+ 'a|web/a.dart': 'library a;\nmain(){}',
+ 'a|web/a.dart_modified.dart':
+ 'library a;\nmain(){}'
+ '\n\npolymerMainWrapper() => main();\n',
});
testPhases('several scripts', phases, {
@@ -64,6 +69,7 @@ void main() {
'</div>',
'a|web/test.html.scriptUrls':
'[["a", "web/a.dart"],["a", "web/b.dart"],["a", "web/c.dart"]]',
+ 'a|web/d.dart': 'library d;\nmain(){}',
}, {
'a|web/test.html':
'<!DOCTYPE html><html><head></head><body><div>'
@@ -77,16 +83,16 @@ void main() {
import 'a.dart' as i0;
import 'b.dart' as i1;
import 'c.dart' as i2;
- import 'd.dart' as i3;
+ import 'd.dart_modified.dart' as i3;
void main() {
configureForDeployment([
'a.dart',
'b.dart',
'c.dart',
- 'd.dart',
+ 'd.dart_modified.dart',
]);
- i3.main();
+ i3.polymerMainWrapper();
}
'''.replaceAll('\n ', '\n'),
});
« pkg/polymer/lib/transformer.dart ('K') | « pkg/polymer/test/build/all_phases_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698