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

Side by Side Diff: tests/language/library10.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/left_shift_test.dart ('k') | tests/language/library1_negative_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) 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 // 4 //
5 5
6 library library10.dart; 6 library library10.dart;
7 7
8 import "library11.dart" as lib11; 8 import "library11.dart" as lib11;
9 import "package:expect/expect.dart";
9 10
10 class Library10 { 11 class Library10 {
11 Library10(this.fld); 12 Library10(this.fld);
12 func() { 13 func() {
13 return 2; 14 return 2;
14 } 15 }
15 var fld; 16 var fld;
16 static static_func() { 17 static static_func() {
17 var result = 0; 18 var result = 0;
18 var obj = new lib11.Library11(4); 19 var obj = new lib11.Library11(4);
19 result = obj.fld; 20 result = obj.fld;
20 Expect.equals(4, result); 21 Expect.equals(4, result);
21 result += obj.func(); 22 result += obj.func();
22 Expect.equals(7, result); 23 Expect.equals(7, result);
23 result += lib11.Library11.static_func(); 24 result += lib11.Library11.static_func();
24 Expect.equals(9, result); 25 Expect.equals(9, result);
25 result += lib11.Library11.static_fld; 26 result += lib11.Library11.static_fld;
26 Expect.equals(10, result); 27 Expect.equals(10, result);
27 Expect.equals(100, lib11.top_level11); 28 Expect.equals(100, lib11.top_level11);
28 Expect.equals(200, lib11.top_level_func11()); 29 Expect.equals(200, lib11.top_level_func11());
29 return 3; 30 return 3;
30 } 31 }
31 static var static_fld = 4; 32 static var static_fld = 4;
32 } 33 }
33 34
34 const int top_level10 = 10; 35 const int top_level10 = 10;
35 top_level_func10() { 36 top_level_func10() {
36 return 20; 37 return 20;
37 } 38 }
OLDNEW
« no previous file with comments | « tests/language/left_shift_test.dart ('k') | tests/language/library1_negative_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698