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

Unified Diff: tests/language/deferred_constant_list_test.dart

Issue 652713002: Add failing (for dart2js) deferred constant-list test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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_constant_list_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_constant_list_test.dart
diff --git a/tests/lib/mirrors/deferred_mirrors_metatarget_test.dart b/tests/language/deferred_constant_list_test.dart
similarity index 68%
copy from tests/lib/mirrors/deferred_mirrors_metatarget_test.dart
copy to tests/language/deferred_constant_list_test.dart
index f0091c8f328d38d2d0b016f9512670f0f6253dcf..ec3dc10fc86dcd937fceb439c596795f8e13be89 100644
--- a/tests/lib/mirrors/deferred_mirrors_metatarget_test.dart
+++ b/tests/language/deferred_constant_list_test.dart
@@ -2,17 +2,16 @@
// 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 that metaTargets can be reached via the mirrorSystem.
-
-import 'package:async_helper/async_helper.dart';
import 'package:expect/expect.dart';
+import 'package:async_helper/async_helper.dart';
-import "deferred_mirrors_metatarget_lib.dart" deferred as lib;
+import "deferred_constant_list_lib.dart" deferred as lib;
void main() {
asyncStart();
lib.loadLibrary().then((_) {
- Expect.equals("A", lib.foo());
+ Expect.equals("[1, 2]", lib.finalConstList.toString());
+ Expect.equals("[3, 4]", lib.nonFinalConstList.toString());
asyncEnd();
});
}
« no previous file with comments | « tests/language/deferred_constant_list_lib.dart ('k') | tests/language/language_dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698