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

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: Add Tests 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/dynamic_type_literal_test.dart b/tests/language/deferred_only_constant_test.dart
similarity index 56%
copy from tests/language/dynamic_type_literal_test.dart
copy to tests/language/deferred_only_constant_test.dart
index 335e9ae70a2bd61eeaed2c7475eb25c4ae4de407..545666c2cf8abd648c068937a37c026d4de0c62b 100644
--- a/tests/language/dynamic_type_literal_test.dart
+++ b/tests/language/deferred_only_constant_test.dart
@@ -2,11 +2,12 @@
// 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.
-// Test generation of 'dynamic' type literals.
+// Testing import of only constants from a deferred library.
-import "package:expect/expect.dart";
+import "deferred_only_constant_lib.dart" deferred as lib;
void main() {
- Expect.isTrue(dynamic is Type);
- Expect.isFalse(dynamic == Type);
-}
+ lib.loadLibrary().then((_) {
+ print(lib.constant);
floitsch 2014/09/29 10:35:59 Expect.equals(...) ?
sigurdm 2014/09/29 10:39:29 Done.
+ });
+}
« 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