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

Unified Diff: test/codegen/corelib/list_literal_is_growable_test.dart

Issue 1945153002: Add corelib tests (Closed) Base URL: https://github.com/dart-lang/dev_compiler@master
Patch Set: error_test and range_error_test now pass Created 4 years, 7 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 | « test/codegen/corelib/list_last_test.dart ('k') | test/codegen/corelib/list_literal_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/corelib/list_literal_is_growable_test.dart
diff --git a/test/codegen/language/factory_arrow_test.dart b/test/codegen/corelib/list_literal_is_growable_test.dart
similarity index 75%
copy from test/codegen/language/factory_arrow_test.dart
copy to test/codegen/corelib/list_literal_is_growable_test.dart
index d2cf52806c9c702a598e64d0d8a83cb7887816a8..061a72d1c0cf17ae1ebb60b12907e7a918e616aa 100644
--- a/test/codegen/language/factory_arrow_test.dart
+++ b/test/codegen/corelib/list_literal_is_growable_test.dart
@@ -4,11 +4,9 @@
import "package:expect/expect.dart";
-class A {
- A.foo() {}
- factory A() => new A.foo();
-}
-
main() {
- Expect.isTrue(new A() is A);
+ var l = [];
+ l.add(1);
+ Expect.equals(1, l.length);
+ Expect.equals(1, l[0]);
}
« no previous file with comments | « test/codegen/corelib/list_last_test.dart ('k') | test/codegen/corelib/list_literal_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698