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

Unified Diff: tests/isolate/count_test.dart

Issue 11864016: Support web workers in dart2js. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 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
Index: tests/isolate/count_test.dart
===================================================================
--- tests/isolate/count_test.dart (revision 17062)
+++ tests/isolate/count_test.dart (working copy)
@@ -30,6 +30,12 @@
local.receive(expectAsync2((int message, SendPort replyTo) {
if (message == -1) {
+ // [count] is '11' because when we sent '9' to [remote],
+ // the other isolate will send another message '18', that this
+ // isolate will receive. Then this isolate will send '10' to
+ // [remote] and increment [count]. Note that this last '10'
+ // message will not be received by the other isolate, since it
+ // received '-1' before.
expect(count, 11);
local.close();
return;

Powered by Google App Engine
This is Rietveld 408576698