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

Unified Diff: tests/language/deferred_only_constant_test.dart

Issue 595183003: Always initialize top-level `Isolate` for deferred libraries. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase Created 6 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
« no previous file with comments | « tests/language/deferred_only_constant_lib.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/deferred_only_constant_test.dart
diff --git a/tests/language/deferred_no_such_method_test.dart b/tests/language/deferred_only_constant_test.dart
similarity index 61%
copy from tests/language/deferred_no_such_method_test.dart
copy to tests/language/deferred_only_constant_test.dart
index 9f1b232ce6d9dc4b483c9d6ff71c60f809239bee..e50d7ba6a1537a687787b7659fb528b57ce85746 100644
--- a/tests/language/deferred_no_such_method_test.dart
+++ b/tests/language/deferred_only_constant_test.dart
@@ -2,15 +2,14 @@
// 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.
+// Testing import of only constants from a deferred library.
+
import 'package:expect/expect.dart';
-import 'package:async_helper/async_helper.dart';
-import "deferred_no_such_method_lib.dart" deferred as lib;
+import "deferred_only_constant_lib.dart" deferred as lib;
void main() {
- asyncStart();
lib.loadLibrary().then((_) {
- Expect.equals(42, new lib.C().nonExisting());
- asyncEnd();
+ Expect.equals(lib.constant, const ["a", "b", "c"]);
});
}
« no previous file with comments | « tests/language/deferred_only_constant_lib.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698