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

Side by Side Diff: tests/compiler/dart2js_extra/invoke_dynamic_test.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
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
5 class A { 7 class A {
6 foo() { return 499; } 8 foo() { return 499; }
7 bar(x) { return x + 499; } 9 bar(x) { return x + 499; }
8 baz() { return 54; } 10 baz() { return 54; }
9 titi() { return 123; } 11 titi() { return 123; }
10 } 12 }
11 13
12 class B { 14 class B {
13 foo() { return 42; } 15 foo() { return 42; }
14 bar(x) { return x + 42; } 16 bar(x) { return x + 42; }
(...skipping 18 matching lines...) Expand all
33 35
34 Expect.equals(54, a.baz()); 36 Expect.equals(54, a.baz());
35 Expect.equals(54, c.baz()); 37 Expect.equals(54, c.baz());
36 38
37 // We don't call a.titi. This means that the compiler needs to trigger the 39 // We don't call a.titi. This means that the compiler needs to trigger the
38 // compilation of A.titi by going through the super-chain. 40 // compilation of A.titi by going through the super-chain.
39 Expect.equals(123, c.titi()); 41 Expect.equals(123, c.titi());
40 42
41 Expect.equals(84, b.toto()); 43 Expect.equals(84, b.toto());
42 } 44 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js_extra/interface_type_optimization_test.dart ('k') | tests/compiler/dart2js_extra/is_operator_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698