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

Unified Diff: tests/language/named_parameters_named_count_test.dart

Issue 10918261: Update language tests to new optional parameter syntax and semantics. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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
Index: tests/language/named_parameters_named_count_test.dart
===================================================================
--- tests/language/named_parameters_named_count_test.dart (revision 12414)
+++ tests/language/named_parameters_named_count_test.dart (working copy)
@@ -21,19 +21,13 @@
Expect.equals(null, obj.method());
Expect.equals(0, obj.method(0));
- Expect.equals(0, obj.method(count: 0));
Expect.equals("", obj.method(""));
- Expect.equals("", obj.method(count: ""));
Expect.equals(null, TestClass.staticMethod());
Expect.equals(true, TestClass.staticMethod(true));
- Expect.equals(true, TestClass.staticMethod(count: true));
Expect.equals(false, TestClass.staticMethod(false));
- Expect.equals(false, TestClass.staticMethod(count: false));
Expect.equals(null, globalMethod());
Expect.equals(true, globalMethod(true));
- Expect.equals(true, globalMethod(count: true));
Expect.equals(false, globalMethod(false));
- Expect.equals(false, globalMethod(count: false));
}

Powered by Google App Engine
This is Rietveld 408576698