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

Side by Side Diff: tests/corelib_2/hidden_library2_test.dart

Issue 2990623002: Migrate test block 9 to Dart 2.0 (Closed)
Patch Set: nits Created 3 years, 4 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
« no previous file with comments | « tests/corelib_2/hashcode_test.dart ('k') | tests/corelib_2/int_ceil_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 // Test that the internal hidden library doesn't make problems with taking 5 // Test that the internal hidden library doesn't make problems with taking
6 // stack-traces. 6 // stack-traces.
7 7
8 main() { 8 main() {
9 print(['x'].where((_) { 9 print(['x'].where((_) {
10 // We actually don't really care for the successful case. We just want to 10 // We actually don't really care for the successful case. We just want to
11 // make sure that the test doesn't crash when it is negative. 11 // make sure that the test doesn't crash when it is negative.
12 throw 'fisk'; // //# 01: runtime error 12 throw 'fisk'; // //# 01: runtime error
13 return true; 13 return true;
14 }).toList()); 14 }).toList());
15 } 15 }
OLDNEW
« no previous file with comments | « tests/corelib_2/hashcode_test.dart ('k') | tests/corelib_2/int_ceil_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698