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

Unified Diff: tests/language/exception_test.dart

Issue 11417058: Revert "Remove NullPointerException." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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/closure3_test.dart ('k') | tests/language/language.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/exception_test.dart
diff --git a/tests/language/exception_test.dart b/tests/language/exception_test.dart
index 0876c5c2327950090f6f9e7625c76fdf0a0d7331..c08a872556ce0cb481595844442db42588df4119 100644
--- a/tests/language/exception_test.dart
+++ b/tests/language/exception_test.dart
@@ -21,11 +21,11 @@ class ExceptionTest {
bool correctCatch = false;
try {
- // This throws NullThrownError
+ // This throws NullPointerException.
throw null;
} on String catch (s) {
correctCatch = false;
- } on NullThrownError catch (e) {
+ } on NullPointerException catch (e) {
correctCatch = true;
} catch (x) {
correctCatch = false;
« no previous file with comments | « tests/language/closure3_test.dart ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698