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

Side by Side Diff: tests/language/invocation_mirror_invoke_on_test.dart

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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
5 // Testing InvocationMirror.invokeOn method; test of issue 7227. 7 // Testing InvocationMirror.invokeOn method; test of issue 7227.
6 8
7 var reachedSetX = 0; 9 var reachedSetX = 0;
8 var reachedGetX = 0; 10 var reachedGetX = 0;
9 var reachedM = 0; 11 var reachedM = 0;
10 12
11 class A { 13 class A {
12 14
13 set x(val) { 15 set x(val) {
14 reachedSetX = val; 16 reachedSetX = val;
(...skipping 13 matching lines...) Expand all
28 30
29 main () { 31 main () {
30 var b = new B(); 32 var b = new B();
31 b.x = 10; 33 b.x = 10;
32 Expect.equals(10, reachedSetX); 34 Expect.equals(10, reachedSetX);
33 b.x; 35 b.x;
34 Expect.equals(1, reachedGetX); 36 Expect.equals(1, reachedGetX);
35 b.m(); 37 b.m();
36 Expect.equals(1, reachedM); 38 Expect.equals(1, reachedM);
37 } 39 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698