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

Unified Diff: tests/html/js_interop_3_test.dart

Issue 10702110: Added Dartium support for JS to Dart PortSync calls (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed tabbing Created 8 years, 5 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 | « tests/html/html.status ('k') | tests/html/js_interop_4_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/js_interop_3_test.dart
diff --git a/tests/html/js_interop_3_test.dart b/tests/html/js_interop_3_test.dart
index df40d1e13100dc3d85d3a40ea6844ab9e6657192..c0057f22294df08856ee5cc021a7ade5fb882890 100644
--- a/tests/html/js_interop_3_test.dart
+++ b/tests/html/js_interop_3_test.dart
@@ -27,8 +27,6 @@ main() {
useHtmlConfiguration();
test('js-to-dart', () {
- var done = expectAsync0(() {});
-
var fun1 = (message) {
Expect.equals('Hello', message['a']);
Expect.equals('World', message['b']);
@@ -41,10 +39,10 @@ main() {
port1.receive(fun1);
window.registerPort('fun1', port1.toSendPort());
+ // TODO(vsm): Investigate why this needs to be called asynchronously.
+ var done = expectAsync0(() {});
var fun2 = (message) {
Expect.equals(42, message);
-
- // TODO(vsm): Investigate why this needs to be called asynchronously.
window.setTimeout(done, 0);
};
« no previous file with comments | « tests/html/html.status ('k') | tests/html/js_interop_4_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698