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

Side by Side Diff: tests/language/block_scope_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/bit_shift_test.dart ('k') | tests/language/bool_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 import "package:expect/expect.dart";
6
7 foo() => 123; 5 foo() => 123;
8 6
9 void testShadowingScope1() { 7 void testShadowingScope1() {
10 var foo = foo(); 8 var foo = foo();
11 Expect.equals(123, foo); 9 Expect.equals(123, foo);
12 } 10 }
13 11
14 void testShadowingScope2() { 12 void testShadowingScope2() {
15 { 13 {
16 var foo = foo() + 444; 14 var foo = foo() + 444;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 } 61 }
64 62
65 main() { 63 main() {
66 testShadowingScope1(); 64 testShadowingScope1();
67 testShadowingScope2(); 65 testShadowingScope2();
68 testShadowingCapture1(); 66 testShadowingCapture1();
69 testShadowingCapture2(); 67 testShadowingCapture2();
70 new BlockScopeTest1().testShadowingInstanceVar(); 68 new BlockScopeTest1().testShadowingInstanceVar();
71 BlockScopeTest1.testShadowingStatic(); 69 BlockScopeTest1.testShadowingStatic();
72 } 70 }
OLDNEW
« no previous file with comments | « tests/language/bit_shift_test.dart ('k') | tests/language/bool_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698