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

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

Issue 22901025: - Fix broken test from http://dartbug.com/12634 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « tests/language/language.status ('k') | no next file » | 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) 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 8
9 class TypeTester<T> {} 9 class TypeTester<T> {}
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 NamedParametersAggregatedTests.f_missing_comma(10 42 NamedParametersAggregatedTests.f_missing_comma(10
43 , 25 /// 02: continued 43 , 25 /// 02: continued
44 ); 44 );
45 45
46 // Expect compile-time erorr due to duplicate named argument. 46 // Expect compile-time erorr due to duplicate named argument.
47 NamedParametersAggregatedTests.F31(10, b:25 47 NamedParametersAggregatedTests.F31(10, b:25
48 , b:35 /// 04: compile-time error 48 , b:35 /// 04: compile-time error
49 ); 49 );
50 50
51 // Expect compile-time error due to missing positional argument. 51 // Expect compile-time error due to missing positional argument.
52 NamedParametersAggregatedTests.F31(b:25, c:35); /// 05: static type warning 52 Expect.throws(() => NamedParametersAggregatedTests.F31(b:25, c:35), (e) => e i s NoSuchMethodError); /// 05: static type warning
53 53
54 new TypeTester<Callback>(); 54 new TypeTester<Callback>();
55 55
56 (new NamedParametersAggregatedTests()).InstallCallback(null); 56 (new NamedParametersAggregatedTests()).InstallCallback(null);
57 57
58 } 58 }
OLDNEW
« no previous file with comments | « tests/language/language.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698