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

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

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add deprecation comment for ExpectException and revert one test. Created 7 years, 8 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/dynamic_field_test.dart ('k') | tests/language/emit_const_fields_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 // Dart test program testing the use of 'dynamic' in generic types. 5 // Dart test program testing the use of 'dynamic' in generic types.
6 // @static-clean 6 // @static-clean
7 7
8 import "package:expect/expect.dart";
9
8 abstract class Iface<K,V> { 10 abstract class Iface<K,V> {
9 } 11 }
10 12
11 class M1<K, V> implements Iface<K, V> { 13 class M1<K, V> implements Iface<K, V> {
12 } 14 }
13 15
14 class M2<K> implements Iface<K, dynamic> { 16 class M2<K> implements Iface<K, dynamic> {
15 } 17 }
16 18
17 class M3 implements Iface<String, dynamic> { 19 class M3 implements Iface<String, dynamic> {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 Expect.equals("dynamic", has_field.dynamic); 56 Expect.equals("dynamic", has_field.dynamic);
55 57
56 HasMethodDynamic has_method = new HasMethodDynamic(); 58 HasMethodDynamic has_method = new HasMethodDynamic();
57 Expect.equals("dynamic", has_method.dynamic()); 59 Expect.equals("dynamic", has_method.dynamic());
58 60
59 { 61 {
60 int dynamic = 0; // Local variable named dynamic is allowed. 62 int dynamic = 0; // Local variable named dynamic is allowed.
61 Expect.equals(0, dynamic); 63 Expect.equals(0, dynamic);
62 } 64 }
63 } 65 }
OLDNEW
« no previous file with comments | « tests/language/dynamic_field_test.dart ('k') | tests/language/emit_const_fields_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698