| Index: tests/html/cross_frame_test.dart
|
| ===================================================================
|
| --- tests/html/cross_frame_test.dart (revision 8732)
|
| +++ tests/html/cross_frame_test.dart (working copy)
|
| @@ -12,7 +12,7 @@
|
| final frameWindow = iframe.contentWindow;
|
|
|
| // Ensure that the frame's document is inaccessible via window.
|
| - Expect.throws(() => frameWindow.document);
|
| + expect(() => frameWindow.document, throws);
|
| });
|
|
|
| test('contentDocument', () {
|
| @@ -20,6 +20,6 @@
|
| document.body.nodes.add(iframe);
|
|
|
| // Ensure that the frame's document is inaccessible.
|
| - Expect.throws(() => iframe.contentDocument);
|
| + expect(() => iframe.contentDocument, throws);
|
| });
|
| }
|
|
|