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

Unified Diff: tests/language/call_through_getter_test.dart

Issue 11377102: Remove named function literals from library and tests (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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 | « sdk/lib/io/http_impl.dart ('k') | tests/language/function_argument_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/call_through_getter_test.dart
===================================================================
--- tests/language/call_through_getter_test.dart (revision 14804)
+++ tests/language/call_through_getter_test.dart (working copy)
@@ -21,7 +21,7 @@
}
static void testTopLevel() {
- topLevel = function() {
+ topLevel = () {
return 2;
};
Expect.equals(1, TOP_LEVEL_CONST);
@@ -146,10 +146,10 @@
B() : _order = new StringBuffer("") { }
- get g0 { _mark('g'); return f0() { return _mark('f'); }; }
- get g1 { _mark('g'); return f1(x) { return _mark('f'); }; }
- get g2 { _mark('g'); return f2(x, y) { return _mark('f'); }; }
- get g3 { _mark('g'); return f3(x, y, z) { return _mark('f'); }; }
+ get g0 { _mark('g'); return () { return _mark('f'); }; }
+ get g1 { _mark('g'); return (x) { return _mark('f'); }; }
+ get g2 { _mark('g'); return (x, y) { return _mark('f'); }; }
+ get g3 { _mark('g'); return (x, y, z) { return _mark('f'); }; }
get x { _mark('x'); return 0; }
get y { _mark('y'); return 1; }
« no previous file with comments | « sdk/lib/io/http_impl.dart ('k') | tests/language/function_argument_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698