| Index: samples/third_party/dromaeo/tests/RunnerSuite.dart
|
| ===================================================================
|
| --- samples/third_party/dromaeo/tests/RunnerSuite.dart (revision 11654)
|
| +++ samples/third_party/dromaeo/tests/RunnerSuite.dart (working copy)
|
| @@ -21,7 +21,13 @@
|
| _window.alert('[${_name}]: unknown command ${command}');
|
| }
|
| };
|
| - _window.on.message.add(starter);
|
| + try {
|
| + // dart:dom_deprecated
|
| + _window.addEventListener('message', starter, false);
|
| + } on NoSuchMethodException catch (e) {
|
| + // dart:html
|
| + _window.on.message.add(starter);
|
| + }
|
| }
|
|
|
| /**
|
|
|