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

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