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

Unified Diff: dart/tests/language/src/CodeAfterTryIsExecutedTest.dart

Issue 9433041: Change CodeAfterTryIsExecutedNegativeTest to a multitest. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dart/tests/language/src/CodeAfterTryIsExecutedNegativeTest.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/language/src/CodeAfterTryIsExecutedTest.dart
===================================================================
--- dart/tests/language/src/CodeAfterTryIsExecutedTest.dart (revision 4458)
+++ dart/tests/language/src/CodeAfterTryIsExecutedTest.dart (working copy)
@@ -1,6 +1,9 @@
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+// Test that the runtime still runs the code after a try/catch. The
+// test cannot use Expect.throws, because Expect.throws uses the same
+// pattern.
main() {
var exception;
@@ -10,5 +13,5 @@
exception = ex;
}
Expect.isTrue(exception is String);
- throw 'foo';
+ throw 'foo'; /// 01: runtime error
}
« no previous file with comments | « dart/tests/language/src/CodeAfterTryIsExecutedNegativeTest.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698