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

Side by Side Diff: tests/language/lazy_static3_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
« no previous file with comments | « tests/language/lazy_static2_test.dart ('k') | tests/language/lazy_static4_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 import "package:expect/expect.dart";
6
7 final x = foo(); 5 final x = foo();
8 var x2 = foo2(); 6 var x2 = foo2();
9 var x3 = foo3(); 7 var x3 = foo3();
10 var x4 = foo4(); 8 var x4 = foo4();
11 var x5 = foo5(); 9 var x5 = foo5();
12 final x6 = foo6(); 10 final x6 = foo6();
13 var x7 = x7 + 1; 11 var x7 = x7 + 1;
14 12
15 foo() { throw "interrupt initialization"; } 13 foo() { throw "interrupt initialization"; }
16 foo2() { x2 = 499; throw "interrupt initialization"; } 14 foo2() { x2 = 499; throw "interrupt initialization"; }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 Expect.equals(null, x3); 47 Expect.equals(null, x3);
50 48
51 Expect.equals(499, x4); 49 Expect.equals(499, x4);
52 50
53 Expect.equals(null, x5); 51 Expect.equals(null, x5);
54 52
55 Expect.equals(499, x6); 53 Expect.equals(499, x6);
56 54
57 Expect.throws(() => fib(x7), (e) => e is RuntimeError); 55 Expect.throws(() => fib(x7), (e) => e is RuntimeError);
58 } 56 }
OLDNEW
« no previous file with comments | « tests/language/lazy_static2_test.dart ('k') | tests/language/lazy_static4_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698