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

Unified Diff: tests/standalone/io/file_constructor_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/type_error_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/file_constructor_test.dart
diff --git a/tests/standalone/io/file_constructor_test.dart b/tests/standalone/io/file_constructor_test.dart
index 4ed7bb7900265ab21449991a73e35a1d5d1288c2..251e1adfd7b2cee072a169d3732cba81ffc6636e 100644
--- a/tests/standalone/io/file_constructor_test.dart
+++ b/tests/standalone/io/file_constructor_test.dart
@@ -20,8 +20,8 @@ void main() {
new File(1);
Expect.fail('Error expected.');
} on ArgumentError catch(e) {
- if (developerMode) throw;
+ if (developerMode) rethrow;
} on TypeError catch(e) {
- if (!developerMode) throw;
+ if (!developerMode) rethrow;
}
}
« no previous file with comments | « tests/language/type_error_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698