Chromium Code Reviews| 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')); |