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

Side by Side Diff: tests/compiler/dart2js_extra/closure_capture_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
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 closure0() { 5 closure0() {
8 var x = 499; 6 var x = 499;
9 // TODO(floitsch): remove name from functions. 7 // TODO(floitsch): remove name from functions.
10 var f = fun() { return x; }; 8 var f = fun() { return x; };
11 Expect.equals(499, f()); 9 Expect.equals(499, f());
12 } 10 }
13 11
14 class A { 12 class A {
15 closure1() { 13 closure1() {
16 var x = 499; 14 var x = 499;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 new A().closure1(); 82 new A().closure1();
85 closure2(); 83 closure2();
86 closure3(); 84 closure3();
87 closure4(); 85 closure4();
88 closure5(); 86 closure5();
89 new A2().closure6(); 87 new A2().closure6();
90 closure7(); 88 closure7();
91 closure8(); 89 closure8();
92 closure9(); 90 closure9();
93 } 91 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js_extra/closure_capture5_test.dart ('k') | tests/compiler/dart2js_extra/closure_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698