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

Side by Side Diff: tests/language_strong/named_parameters_aggregated_test.dart

Issue 2957593002: Spelling fixes e to i. (Closed)
Patch Set: 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
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 // Dart test program for testing named parameters. 4 // Dart test program for testing named parameters.
5 5
6 import "package:expect/expect.dart"; 6 import "package:expect/expect.dart";
7 7
8 class TypeTester<T> {} 8 class TypeTester<T> {}
9 9
10 // Expect compile-time error as no default values are allowed 10 // Expect compile-time error as no default values are allowed
(...skipping 23 matching lines...) Expand all
34 _handler = cb; 34 _handler = cb;
35 } 35 }
36 } 36 }
37 37
38 main() { 38 main() {
39 // Expect compile-time error due to missing comma in function definition. 39 // Expect compile-time error due to missing comma in function definition.
40 NamedParametersAggregatedTests.f_missing_comma(10 40 NamedParametersAggregatedTests.f_missing_comma(10
41 , 25 // //# 02: continued 41 , 25 // //# 02: continued
42 ); 42 );
43 43
44 // Expect compile-time erorr due to duplicate named argument. 44 // Expect compile-time error due to duplicate named argument.
45 NamedParametersAggregatedTests.F31(10, b: 25 45 NamedParametersAggregatedTests.F31(10, b: 25
46 , b:35 // //# 04: compile-time error 46 , b:35 // //# 04: compile-time error
47 ); 47 );
48 48
49 // Expect compile-time error due to missing positional argument. 49 // Expect compile-time error due to missing positional argument.
50 Expect.throws(() => NamedParametersAggregatedTests.F31(b:25, c:35), (e) => e i s NoSuchMethodError); // //# 05: static type warning 50 Expect.throws(() => NamedParametersAggregatedTests.F31(b:25, c:35), (e) => e i s NoSuchMethodError); // //# 05: static type warning
51 51
52 new TypeTester<Callback>(); 52 new TypeTester<Callback>();
53 53
54 (new NamedParametersAggregatedTests()).InstallCallback(null); 54 (new NamedParametersAggregatedTests()).InstallCallback(null);
55 } 55 }
OLDNEW
« no previous file with comments | « tests/language_strong/named_parameters4_test.dart ('k') | tests/language_strong/static_inline_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698