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

Side by Side Diff: tests/isolate/mint_maker_test.dart

Issue 10829162: Fix type annotation issue. (Closed) Base URL: https://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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // Things that should be "auto-generated" are between AUTO START and 5 // Things that should be "auto-generated" are between AUTO START and
6 // AUTO END (or just AUTO if it's a single line). 6 // AUTO END (or just AUTO if it's a single line).
7 7
8 #library("MintMakerTest"); 8 #library("MintMakerTest");
9 #import("dart:isolate"); 9 #import("dart:isolate");
10 #import('../../lib/unittest/unittest.dart'); 10 #import('../../lib/unittest/unittest.dart');
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 port_ = spawnFunction(mintMakerWrapper); 174 port_ = spawnFunction(mintMakerWrapper);
175 } 175 }
176 176
177 void makeMint(handleMint(MintWrapper mint)) { 177 void makeMint(handleMint(MintWrapper mint)) {
178 port_.call(null).then((var message) { 178 port_.call(null).then((var message) {
179 SendPort mint = message[0]; 179 SendPort mint = message[0];
180 handleMint(new MintWrapper(mint)); 180 handleMint(new MintWrapper(mint));
181 }); 181 });
182 } 182 }
183 183
184 Future<SendPort> port_; 184 SendPort port_;
185 } 185 }
186 186
187 _checkBalance(PurseWrapper wrapper, expected) { 187 _checkBalance(PurseWrapper wrapper, expected) {
188 wrapper.queryBalance(expectAsync1((int balance) { 188 wrapper.queryBalance(expectAsync1((int balance) {
189 expect(balance, equals(expected)); 189 expect(balance, equals(expected));
190 })); 190 }));
191 } 191 }
192 192
193 main() { 193 main() {
194 test("creating purse, deposit, and query balance", () { 194 test("creating purse, deposit, and query balance", () {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 sprouted...deposit(purse, 5); 252 sprouted...deposit(purse, 5);
253 Expect.equals(0 + 5, sprouted.queryBalance()); 253 Expect.equals(0 + 5, sprouted.queryBalance());
254 Expect.equals(100 - 5, purse.queryBalance()); 254 Expect.equals(100 - 5, purse.queryBalance());
255 255
256 sprouted...deposit(purse, 42); 256 sprouted...deposit(purse, 42);
257 Expect.equals(0 + 5 + 42, sprouted.queryBalance()); 257 Expect.equals(0 + 5 + 42, sprouted.queryBalance());
258 Expect.equals(100 - 5 - 42, purse.queryBalance()); 258 Expect.equals(100 - 5 - 42, purse.queryBalance());
259 } 259 }
260 */ 260 */
261 } 261 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698