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

Unified Diff: tests/compiler/dart2js/size_test.dart

Issue 326913002: Make dart2js unittests async. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 6 years, 6 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: tests/compiler/dart2js/size_test.dart
diff --git a/tests/compiler/dart2js/size_test.dart b/tests/compiler/dart2js/size_test.dart
index d15f9247c24ed20cc376b6466f60c6700f6781e0..dfed91bbd7d2029c4c4c05bacda42858a53c175a 100644
--- a/tests/compiler/dart2js/size_test.dart
+++ b/tests/compiler/dart2js/size_test.dart
@@ -29,10 +29,11 @@ const String DEFAULT_CORELIB_WITH_LIST = r'''
main() {
asyncTest(() => compileAll(TEST, coreSource: DEFAULT_CORELIB_WITH_LIST).
then((generated) {
- MockCompiler compiler = new MockCompiler();
- var backend = compiler.backend;
+ return MockCompiler.create((MockCompiler compiler) {
+ var backend = compiler.backend;
- // Make sure no class is emitted.
- Expect.isFalse(generated.contains(backend.emitter.finishClassesName));
+ // Make sure no class is emitted.
+ Expect.isFalse(generated.contains(backend.emitter.finishClassesName));
+ });
}));
}
« no previous file with comments | « tests/compiler/dart2js/simple_function_subtype_test.dart ('k') | tests/compiler/dart2js/source_mapping_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698