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

Unified Diff: tests/html/unknownelement_test.dart

Issue 10908199: Fix unknownelement_test after recent rework. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 | « tests/html/html.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/unknownelement_test.dart
diff --git a/tests/html/unknownelement_test.dart b/tests/html/unknownelement_test.dart
index 3f286720a74dc078588a67ee663a69ef20f95375..86a67b1a500b315cb905c20162324f35c4e666d0 100644
--- a/tests/html/unknownelement_test.dart
+++ b/tests/html/unknownelement_test.dart
@@ -24,9 +24,9 @@ main() {
});
test('dispatch-fail', () {
- expect(() => foo.method1(), throwsException);
- expect(() => foo.field1, throwsException);
- expect(() { foo.field1 = 42; }, throwsException);
+ expect(() => foo.method1(), throwsNoSuchMethodError);
+ expect(() => foo.field1, throwsNoSuchMethodError);
+ expect(() { foo.field1 = 42; }, throwsNoSuchMethodError);
});
test('dispatch', () {
@@ -62,9 +62,9 @@ main() {
dynamicUnknownElementDispatcher = dispatch;
expect(foo.x, equals(42));
- expect(() { foo.x = 7; }, throwsException);
+ expect(() { foo.x = 7; }, throwsNoSuchMethodError);
Anton Muhin 2012/09/11 13:37:14 that doesn't feel right
expect(foo.id, equals('foo'));
- expect(() => bar.x, throwsException);
+ expect(() => bar.x, throwsNoSuchMethodError);
bar.y = 11;
expect(bar.y, equals(11));
expect(foo.baz('hello'), equals('foo - hello'));
« no previous file with comments | « tests/html/html.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698