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

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

Issue 12743005: Revert "Remove Expect from core library." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload (first upload failed). Created 7 years, 9 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
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";
7
8 6
9 class TypeTester<T> {} 7 class TypeTester<T> {}
10 8
11 // Expect compile-time error as no default values are allowed 9 // Expect compile-time error as no default values are allowed
12 // in closure type definitions. 10 // in closure type definitions.
13 typedef void Callback([String msg 11 typedef void Callback([String msg
14 = "" /// 01: compile-time error 12 = "" /// 01: compile-time error
15 ]); 13 ]);
16 14
17 class NamedParametersAggregatedTests { 15 class NamedParametersAggregatedTests {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 ); 47 );
50 48
51 // Expect compile-time error due to missing positional argument. 49 // Expect compile-time error due to missing positional argument.
52 NamedParametersAggregatedTests.F31(b:25, c:35); /// 05: static type warning 50 NamedParametersAggregatedTests.F31(b:25, c:35); /// 05: static type warning
53 51
54 new TypeTester<Callback>(); 52 new TypeTester<Callback>();
55 53
56 (new NamedParametersAggregatedTests()).InstallCallback(null); 54 (new NamedParametersAggregatedTests()).InstallCallback(null);
57 55
58 } 56 }
OLDNEW
« no previous file with comments | « tests/language/named_parameters4_test.dart ('k') | tests/language/named_parameters_named_count_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698