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

Side by Side Diff: tests/corelib_2/apply2_test.dart

Issue 2978013002: Migrate test block 1 to Dart 2.0. (Closed)
Patch Set: rebase to repatched status/utilities Created 3 years, 5 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 unified diff | Download patch
« no previous file with comments | « tests/corelib/corelib.status ('k') | tests/corelib_2/apply3_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 6
7 apply(Function function, List positional, Map<Symbol, dynamic> named) { 7 apply(Function function, List positional, Map<Symbol, dynamic> named) {
8 return Function.apply(function, positional, named); 8 return Function.apply(function, positional, named);
9 } 9 }
10 10
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 Expect.equals('c8 7 8 2 3', apply(c8, [7, 8], null)); 88 Expect.equals('c8 7 8 2 3', apply(c8, [7, 8], null));
89 Expect.equals('c8 7 8 2 3', apply(c8, [7, 8], {})); 89 Expect.equals('c8 7 8 2 3', apply(c8, [7, 8], {}));
90 Expect.equals('c8 7 8 3 3', apply(c8, [7, 8, 3], null)); 90 Expect.equals('c8 7 8 3 3', apply(c8, [7, 8, 3], null));
91 Expect.equals('c8 7 8 3 4', apply(c8, [7, 8, 3, 4], null)); 91 Expect.equals('c8 7 8 3 4', apply(c8, [7, 8, 3, 4], null));
92 throwsNSME(c8, [], null); 92 throwsNSME(c8, [], null);
93 throwsNSME(c8, [], {}); 93 throwsNSME(c8, [], {});
94 throwsNSME(c8, [1], null); 94 throwsNSME(c8, [1], null);
95 throwsNSME(c8, [7, 8, 9, 10, 11], null); 95 throwsNSME(c8, [7, 8, 9, 10, 11], null);
96 } 96 }
OLDNEW
« no previous file with comments | « tests/corelib/corelib.status ('k') | tests/corelib_2/apply3_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698