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

Side by Side Diff: tests/language/inlined_throw_test.dart

Issue 13724021: Remove deprecated Expect from the libraries. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Rebase. 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/inline_super_field_test.dart ('k') | tests/language/interceptor7_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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 // Dart test program to test check that we don't fail to compile when an 5 // Dart test program to test check that we don't fail to compile when an
6 // inlinable method contains a throw. 6 // inlinable method contains a throw.
7 7
8 import 'package:expect/expect.dart';
9
8 var x = false; 10 var x = false;
9 11
10 bool called; 12 bool called;
11 13
12 bool callMeTrue() { 14 bool callMeTrue() {
13 called = true; 15 called = true;
14 return true; 16 return true;
15 } 17 }
16 18
17 bool callMeFalse() { 19 bool callMeFalse() {
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 testCallThenThrow(call3c); 172 testCallThenThrow(call3c);
171 testCallThenThrow(call4c); 173 testCallThenThrow(call4c);
172 Expect.throws(sendSet); 174 Expect.throws(sendSet);
173 testCallThenThrow(sendSetCallThrow); 175 testCallThenThrow(sendSetCallThrow);
174 Expect.throws(isSend); 176 Expect.throws(isSend);
175 testNoThrow(vile); 177 testNoThrow(vile);
176 testCallThenThrow(dovile); 178 testCallThenThrow(dovile);
177 testCall(dovileBreak); 179 testCall(dovileBreak);
178 testCallThenThrow(dovileContinue); 180 testCallThenThrow(dovileContinue);
179 } 181 }
OLDNEW
« no previous file with comments | « tests/language/inline_super_field_test.dart ('k') | tests/language/interceptor7_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698