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

Unified Diff: tests/language/deferred_no_such_method_test.dart

Issue 202903006: Make deferred loading work with noSuchMethod. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 | « tests/language/deferred_no_such_method_lib.dart ('k') | tests/language/language_dart2js.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/deferred_no_such_method_test.dart
diff --git a/tests/compiler/dart2js_extra/deferred/deferred_constant2_test.dart b/tests/language/deferred_no_such_method_test.dart
similarity index 57%
copy from tests/compiler/dart2js_extra/deferred/deferred_constant2_test.dart
copy to tests/language/deferred_no_such_method_test.dart
index cb67911a8d038faa6105ae73375fb5489ab01b32..00791b5facd9b300fd6d4997d960123ebe043784 100644
--- a/tests/compiler/dart2js_extra/deferred/deferred_constant2_test.dart
+++ b/tests/language/deferred_no_such_method_test.dart
@@ -2,20 +2,18 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-import 'package:async_helper/async_helper.dart';
+import "dart:async";
import 'package:expect/expect.dart';
+import 'package:async_helper/async_helper.dart';
-import 'dart:async';
-
-@lazy import 'deferred_class_library2.dart' as lib;
+@l import "deferred_no_such_method_lib.dart" as lib;
-const lazy = const DeferredLibrary('deferred_class_library2');
+const l = const DeferredLibrary('lib');
-main() {
+void main() {
asyncStart();
- lazy.load().then((bool didLoad) {
- Expect.isTrue(didLoad);
- Expect.equals(499, lib.C1.value);
+ l.load().then((_) {
+ Expect.equals(42, new lib.C().nonExisting());
asyncEnd();
});
-}
+}
« no previous file with comments | « tests/language/deferred_no_such_method_lib.dart ('k') | tests/language/language_dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698