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

Unified Diff: dart/tests/corelib/symbol_test.dart

Issue 14048012: Update symbol test to have proper expectations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 8 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: dart/tests/corelib/symbol_test.dart
diff --git a/dart/tests/corelib/symbol_test.dart b/dart/tests/corelib/symbol_test.dart
index a160244d4786aaace8e3d318dd6abad137efabf0..0bdb09463416e64b2fbb1f75d2cc1cbed66f7d19 100644
--- a/dart/tests/corelib/symbol_test.dart
+++ b/dart/tests/corelib/symbol_test.dart
@@ -10,8 +10,8 @@ main() {
try {
print(const Symbol(0)); /// 01: compile-time error
- } on ArgumentError {
- print('Caught ArgumentError');
+ } on NoSuchMethodError {
+ print('Caught NoSuchMethodError');
} on TypeError {
print('Caught TypeError');
}
@@ -31,9 +31,9 @@ main() {
try {
var y = 0;
print(new Symbol(y));
- throw 'Expected an ArgumentError or a TypeError';
- } on ArgumentError {
- print('Caught ArgumentError');
+ throw 'Expected a NoSuchMethodError or a TypeError';
+ } on NoSuchMethodError {
+ print('Caught NoSuchMethodError');
} on TypeError {
print('Caught TypeError');
}
« 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