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

Unified Diff: tests/language/type_error_test.dart

Issue 22548003: Fix uses of throw/rethrow in tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/language/try_catch3_test.dart ('k') | tests/standalone/io/file_constructor_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/type_error_test.dart
diff --git a/tests/language/type_error_test.dart b/tests/language/type_error_test.dart
index b41ad0781af383e025c465f09fb0208ab99dc03c..6f0303bb795f287e9892f97ebd055f09c9c2fc21 100644
--- a/tests/language/type_error_test.dart
+++ b/tests/language/type_error_test.dart
@@ -133,7 +133,7 @@ checkTypeError(o) {
} on TypeError catch (e) {
print(e); // This might provoke an error.
if (assertionsEnabled) return; // Expected type error.
- throw; // Rethrow unexpected type error.
+ rethrow; // Rethrow unexpected type error.
}
if (assertionsEnabled) {
throw 'expected TypeError';
« no previous file with comments | « tests/language/try_catch3_test.dart ('k') | tests/standalone/io/file_constructor_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698