Index: tests/html/inner_frame_test.dart |
diff --git a/tests/html/inner_frame_test.dart b/tests/html/inner_frame_test.dart |
index ef42a8420516e860a4b27b6b3ccb153c3dcc7ce5..300192524e4df8cea01ad5aaeab17e8587c28a19 100644 |
--- a/tests/html/inner_frame_test.dart |
+++ b/tests/html/inner_frame_test.dart |
@@ -10,7 +10,7 @@ main() { |
// The child's frame should not be able to access its parent's |
// document. |
- window.on.message.add((Event e) { |
+ window.onMessage.listen((Event e) { |
switch (e.data) { |
case 'frameElement': { |
// Check window.frameElement. |
@@ -74,13 +74,13 @@ main() { |
var child; |
test('prepare', () { |
- iframe.on.load.add(expectAsync1((e) { child = iframe.contentWindow;})); |
+ iframe.onLoad.listen(expectAsync1((e) { child = iframe.contentWindow;})); |
document.body.nodes.add(iframe); |
}); |
final validate = (testName, verify) { |
final expectedVerify = expectAsync0(verify); |
- window.on.message.add((e) { |
+ window.onMessage.listen((e) { |
guardAsync(() { |
if (e.data == 'pass_$testName') { |
expectedVerify(); |