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

Side by Side Diff: tests/language/bailout3_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
« no previous file with comments | « tests/language/bailout2_test.dart ('k') | tests/language/bailout4_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
5 // Test that the return type of a method is being registered for both 7 // Test that the return type of a method is being registered for both
6 // its bailout and optimized version in dart2js. 8 // its bailout and optimized version in dart2js.
7 9
8 var a; 10 var a;
9 11
10 bar() { 12 bar() {
11 if (a[0] == 0) { 13 if (a[0] == 0) {
12 // Force bailout version. 14 // Force bailout version.
13 bar(); 15 bar();
14 // Avoid inlining. 16 // Avoid inlining.
(...skipping 15 matching lines...) Expand all
30 // This check used to fail because dart2js was assuming [a] was an 32 // This check used to fail because dart2js was assuming [a] was an
31 // array. 33 // array.
32 Expect.equals(1, a.length); 34 Expect.equals(1, a.length);
33 } 35 }
34 36
35 main() { 37 main() {
36 a = new Map(); 38 a = new Map();
37 bar(); 39 bar();
38 foo(); 40 foo();
39 } 41 }
OLDNEW
« no previous file with comments | « tests/language/bailout2_test.dart ('k') | tests/language/bailout4_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698