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

Unified Diff: samples/third_party/dromaeo/tests/RunnerSuite.dart

Issue 10909035: Revert 11715. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 | « samples/third_party/dromaeo/Suites.dart ('k') | samples/third_party/dromaeo/tests/dom-attr-dom.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/third_party/dromaeo/tests/RunnerSuite.dart
===================================================================
--- samples/third_party/dromaeo/tests/RunnerSuite.dart (revision 11716)
+++ 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);
+ }
}
/**
« no previous file with comments | « samples/third_party/dromaeo/Suites.dart ('k') | samples/third_party/dromaeo/tests/dom-attr-dom.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698