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

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

Issue 17759007: First pass at asynchronous input loading in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments 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
Index: tests/compiler/dart2js/size_test.dart
diff --git a/tests/compiler/dart2js/size_test.dart b/tests/compiler/dart2js/size_test.dart
index 446a6dc9aa1e52e68b3e6c3809af1f4ac5dfdbff..96b52765501e8e5333147535aac4da75faffe5d3 100644
--- a/tests/compiler/dart2js/size_test.dart
+++ b/tests/compiler/dart2js/size_test.dart
@@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
import 'package:expect/expect.dart';
+import "package:async_helper/async_helper.dart";
import "compiler_helper.dart";
const String TEST = "main() => [];";
@@ -25,10 +26,12 @@ const String DEFAULT_CORELIB_WITH_LIST = r'''
''';
main() {
- String generated = compileAll(TEST, coreSource: DEFAULT_CORELIB_WITH_LIST);
- MockCompiler compiler = new MockCompiler();
- var backend = compiler.backend;
+ asyncTest(() => compileAll(TEST, coreSource: DEFAULT_CORELIB_WITH_LIST).
+ then((generated) {
+ MockCompiler compiler = new MockCompiler();
+ 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_inferrer_unregister_call_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