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

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

Issue 9406010: Also allow type-errors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/src/Arithmetic2Test.dart
diff --git a/tests/language/src/Arithmetic2Test.dart b/tests/language/src/Arithmetic2Test.dart
index b3c87b892857e8d2e4859be568e13eb40360d53d..17d96ee9e5efb5c74474681e1392469872ec4daa 100644
--- a/tests/language/src/Arithmetic2Test.dart
+++ b/tests/language/src/Arithmetic2Test.dart
@@ -27,6 +27,9 @@ bool throwsBecauseOfBadArgument(f) {
return true;
} catch(NullPointerException e) {
return true;
+ } catch (TypeError e) {
+ // In type checked mode.
kasperl 2012/02/15 14:24:22 Maybe you should make sure we're actually running
+ return true;
}
return false;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698