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

Side by Side Diff: tests/language/metadata_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/metadata_syntax_test.dart ('k') | tests/language/method_binding_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 // Test ensuring that compiler can parse metadata. Need to add negative 5 // Test ensuring that compiler can parse metadata. Need to add negative
6 // test cases with illegal metadata annotations. 6 // test cases with illegal metadata annotations.
7 7
8 library metadata_test.dart; 8 library metadata_test.dart;
9 import "package:expect/expect.dart";
9 import "metadata_lib.dart" as Meta; 10 import "metadata_lib.dart" as Meta;
10 11
11 class Tag { 12 class Tag {
12 final String annotation; 13 final String annotation;
13 const Tag(this.annotation); 14 const Tag(this.annotation);
14 } 15 }
15 16
16 const meta1 = 1; 17 const meta1 = 1;
17 const meta2 = const Tag("meta2"); 18 const meta2 = const Tag("meta2");
18 19
(...skipping 19 matching lines...) Expand all
38 @meta1 main() { 39 @meta1 main() {
39 @meta1 var a = new A(); 40 @meta1 var a = new A();
40 Expect.equals(0, a.foo(false, x: 0)); 41 Expect.equals(0, a.foo(false, x: 0));
41 42
42 for (@Tag("loopvar") int i = 0; i < 10; i++) { 43 for (@Tag("loopvar") int i = 0; i < 10; i++) {
43 // Do something. 44 // Do something.
44 } 45 }
45 46
46 @meta1 var s = r'This is a raw \\ string.'; 47 @meta1 var s = r'This is a raw \\ string.';
47 } 48 }
OLDNEW
« no previous file with comments | « tests/language/metadata_syntax_test.dart ('k') | tests/language/method_binding_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698