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

Unified Diff: tests/language/const_list_test.dart

Issue 348053002: dart2dart: Support for all constants in new backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: SVN rebase + merge Created 6 years, 6 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/const_global_test.dart ('k') | tests/language/const_local_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/const_list_test.dart
diff --git a/tests/language/const_list_test.dart b/tests/language/const_list_test.dart
index dd7c1830e3ac5f93239c97ab86d205aed4c5cb5e..57fc50948aa22a2e7efb883d9cefaddd297e1a23 100644
--- a/tests/language/const_list_test.dart
+++ b/tests/language/const_list_test.dart
@@ -6,7 +6,7 @@ import "package:expect/expect.dart";
class ConstListTest {
- static testMain() {
+ static testConstructors() {
List fixedList = new List(4);
List fixedList2 = new List(4);
List growableList = new List();
@@ -28,6 +28,9 @@ class ConstListTest {
Expect.equals(false, fixedList == growableList);
fixedList[3] = 0;
Expect.equals(false, fixedList == growableList);
+ }
+
+ static testLiterals() {
var a = [1, 2, 3.1];
var b = [1, 2, 3.1];
Expect.equals(false, a == b);
@@ -44,5 +47,6 @@ class ConstListTest {
}
main() {
- ConstListTest.testMain();
+ ConstListTest.testConstructors();
+ ConstListTest.testLiterals();
}
« no previous file with comments | « tests/language/const_global_test.dart ('k') | tests/language/const_local_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698