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

Unified Diff: pkg/smoke/test/codegen/end_to_end_test.dart

Issue 362043006: Add support in smoke for generating static configurations in pieces. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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/smoke/test/codegen/common.dart ('k') | pkg/smoke/test/codegen/generator_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/smoke/test/codegen/end_to_end_test.dart
diff --git a/pkg/smoke/test/codegen/end_to_end_test.dart b/pkg/smoke/test/codegen/end_to_end_test.dart
index 04132742c0daf09fa1de6fab975895a38e79133c..ad47215e3388d15f5430a515d39a09a1112cdd74 100644
--- a/pkg/smoke/test/codegen/end_to_end_test.dart
+++ b/pkg/smoke/test/codegen/end_to_end_test.dart
@@ -136,12 +136,12 @@ _createEntrypoint(SmokeCodeGenerator generator) {
generator.writeImports(sb);
sb.writeln("import 'common.dart' as common show main;\n");
generator.writeTopLevelDeclarations(sb);
- sb.writeln('\n_configure() {');
- generator.writeInitCall(sb);
+ sb.write('\nfinal configuration = ');
+ generator.writeStaticConfiguration(sb, 0);
- sb..writeln('}\n')
+ sb..writeln(';\n')
..writeln('main() {')
- ..writeln(' setUp(_configure);')
+ ..writeln(' setUp(() => useGeneratedCode(configuration));')
..writeln(' common.main();')
..writeln('}');
return sb.toString();
« no previous file with comments | « pkg/smoke/test/codegen/common.dart ('k') | pkg/smoke/test/codegen/generator_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698