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

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

Issue 429883002: Remove support for the DeferredLibrary annotation and remove tests of it (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
Index: tests/compiler/dart2js/deferred_emit_type_checks_test.dart
diff --git a/tests/compiler/dart2js/deferred_emit_type_checks_test.dart b/tests/compiler/dart2js/deferred_emit_type_checks_test.dart
index ecf6ffbf561d94335a98c5366cc0dd9ae1e6290e..db88e6a77b9ffc8c873372662cfb72d4ee89f346 100644
--- a/tests/compiler/dart2js/deferred_emit_type_checks_test.dart
+++ b/tests/compiler/dart2js/deferred_emit_type_checks_test.dart
@@ -51,7 +51,7 @@ void main() {
{});
asyncTest(() => compiler.run(Uri.parse('memory:main.dart')).then((_) {
String mainOutput = outputs['main.js'].mem[0];
- String deferredOutput = outputs['out_deferred.part.js'].mem[0];
+ String deferredOutput = outputs['out_lib.part.js'].mem[0];
RegExp re = new RegExp(r"\n _ = .\.A;\n _.\$isA = TRUE;");
print(deferredOutput);
Expect.isTrue(re.hasMatch(deferredOutput));
@@ -63,14 +63,10 @@ void main() {
// it with a type argument, and testing for the type. The extra support should
// go to the deferred hunk.
const Map MEMORY_SOURCE_FILES = const {"main.dart": """
-import "dart:async";
-
-@def import 'lib.dart' as lib show f, A, instance;
-
-const def = const DeferredLibrary("deferred");
+import 'lib.dart' deferred as lib show f, A, instance;
void main() {
- def.load().then((_) {
+ lib.loadLibrary().then((_) {
print(lib.f(lib.instance));
});
}

Powered by Google App Engine
This is Rietveld 408576698