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

Unified Diff: tests/language/string_interpolate_npe_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/null_pointer_exception_test.dart ('k') | tests/language/string_interpolate_null_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/string_interpolate_npe_test.dart
diff --git a/tests/language/string_interpolate_null_test.dart b/tests/language/string_interpolate_npe_test.dart
similarity index 85%
rename from tests/language/string_interpolate_null_test.dart
rename to tests/language/string_interpolate_npe_test.dart
index c8aff4a746389b968e327c4094b2089403479859..0baa32a9a43b4cb430fd75420e010297765c02e3 100644
--- a/tests/language/string_interpolate_null_test.dart
+++ b/tests/language/string_interpolate_npe_test.dart
@@ -15,8 +15,8 @@ main() {
a = null;
try {
s = "Hello Mr. ${a.name}";
- } on NoSuchMethodError catch (e) {
+ } on NullPointerException catch (e) {
return;
}
- Expect.fail("NoSuchMethodError not thrown");
+ Expect.fail("NullPointerException not thrown");
}
« no previous file with comments | « tests/language/null_pointer_exception_test.dart ('k') | tests/language/string_interpolate_null_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698