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

Unified Diff: tests/standalone/io/test_extension_tester.dart

Issue 11447010: - Add an extension test which throws from native code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years 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
Index: tests/standalone/io/test_extension_tester.dart
===================================================================
--- tests/standalone/io/test_extension_tester.dart (revision 15726)
+++ tests/standalone/io/test_extension_tester.dart (working copy)
@@ -13,4 +13,10 @@
Expect.equals(4, Cat.ifNull(4, null), 'Cat.ifNull(4, null)');
Expect.equals(5, Cat.ifNull(5, 9), 'Cat.ifNull(5, 9)');
Expect.isNull(Cat.ifNull(null, null), 'Cat.ifNull(null, null)');
+
+ try {
+ Cat.throwMeTheBall("ball");
+ } on String catch (e) {
+ Expect.equals("ball", e);
+ }
}

Powered by Google App Engine
This is Rietveld 408576698