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

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

Issue 57423005: Switch to new main semantics (fixes issue 14797) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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/all_phases_test.dart ('k') | runtime/bin/vmservice/client/web/index.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 946c90d35e96ce34374f6446f21b1db52f00ac48..e3ec79c68ca02798ad8a61536b65a3c5dcc146d4 100644
--- a/pkg/polymer/test/build/script_compactor_test.dart
+++ b/pkg/polymer/test/build/script_compactor_test.dart
@@ -46,19 +46,16 @@ void main() {
'a|web/test.html_bootstrap.dart':
'''$MAIN_HEADER
- import 'a.dart_modified.dart' as i0;
+ import 'a.dart' as i0;
void main() {
configureForDeployment([
- 'a.dart_modified.dart',
+ 'a.dart',
]);
- i0.polymerMainWrapper();
+ i0.main();
}
'''.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, {
@@ -83,16 +80,16 @@ void main() {
import 'a.dart' as i0;
import 'b.dart' as i1;
import 'c.dart' as i2;
- import 'd.dart_modified.dart' as i3;
+ import 'd.dart' as i3;
void main() {
configureForDeployment([
'a.dart',
'b.dart',
'c.dart',
- 'd.dart_modified.dart',
+ 'd.dart',
]);
- i3.polymerMainWrapper();
+ i3.main();
}
'''.replaceAll('\n ', '\n'),
});
« no previous file with comments | « pkg/polymer/test/build/all_phases_test.dart ('k') | runtime/bin/vmservice/client/web/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698