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

Side by Side Diff: tests/compiler/dart2js_extra/break_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) 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 break1(int x, int y, int ew, int ez) { 7 break1(int x, int y, int ew, int ez) {
6 int w = 1; 8 int w = 1;
7 int z = 0; 9 int z = 0;
8 bk1: if (x == 2) { 10 bk1: if (x == 2) {
9 z = 1; 11 z = 1;
10 if (y == 3) { 12 if (y == 3) {
11 w = 2; 13 w = 2;
12 break bk1; 14 break bk1;
13 } else { 15 } else {
14 w = 3; 16 w = 3;
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 Expect.isTrue(obscureBreaks(3), "3"); 143 Expect.isTrue(obscureBreaks(3), "3");
142 Expect.isTrue(obscureBreaks(4), "4"); 144 Expect.isTrue(obscureBreaks(4), "4");
143 Expect.isFalse(obscureBreaks(5), "5"); 145 Expect.isFalse(obscureBreaks(5), "5");
144 Expect.equals(3, ifBreaks(1, 4)); 146 Expect.equals(3, ifBreaks(1, 4));
145 Expect.equals(4, ifBreaks(1, 2)); 147 Expect.equals(4, ifBreaks(1, 2));
146 Expect.equals(5, ifBreaks(1, 3)); 148 Expect.equals(5, ifBreaks(1, 3));
147 Expect.equals(6, ifBreaks(2, 4)); 149 Expect.equals(6, ifBreaks(2, 4));
148 Expect.equals(7, ifBreaks(2, 2)); 150 Expect.equals(7, ifBreaks(2, 2));
149 Expect.equals(8, ifBreaks(2, 3)); 151 Expect.equals(8, ifBreaks(2, 3));
150 } 152 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js_extra/bailout_test.dart ('k') | tests/compiler/dart2js_extra/checked_accessor_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698