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

Side by Side Diff: tests/kernel/unsorted/rethrow_test.dart

Issue 2454993003: Remove custom expect.dart from Kernel tests (Closed)
Patch Set: Created 4 years, 1 month 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
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 'expect.dart'; 5 import 'package:expect/expect.dart';
6 6
7 testNormalRethrow() { 7 testNormalRethrow() {
8 var x = 0; 8 var x = 0;
9 try { 9 try {
10 try { 10 try {
11 throw x++; 11 throw x++;
12 } catch (e) { 12 } catch (e) {
13 Expect.isTrue(e == 0); 13 Expect.isTrue(e == 0);
14 x++; 14 x++;
15 rethrow; 15 rethrow;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 x++; 58 x++;
59 } 59 }
60 Expect.isTrue(x == 5); 60 Expect.isTrue(x == 5);
61 } 61 }
62 62
63 main() { 63 main() {
64 testNormalRethrow(); 64 testNormalRethrow();
65 testNormalRethrow2(); 65 testNormalRethrow2();
66 testRethrowWithinTryRethrow(); 66 testRethrowWithinTryRethrow();
67 } 67 }
OLDNEW
« no previous file with comments | « tests/kernel/unsorted/nullable_operator_test.dart ('k') | tests/kernel/unsorted/return_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698