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

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

Issue 53583003: Implement latest spec changes regarding malformed types (see issue 14006): (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month 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 | « tests/co19/co19-runtime.status ('k') | tests/isolate/unresolved_ports_test.dart » ('j') | 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 library MintMakerTest; 5 library MintMakerTest;
6 import 'dart:async';
6 import 'dart:isolate'; 7 import 'dart:isolate';
7 import '../../pkg/unittest/lib/unittest.dart'; 8 import '../../pkg/unittest/lib/unittest.dart';
8 9
9 class Mint { 10 class Mint {
10 Map<SendPort, Purse> _registry; 11 Map<SendPort, Purse> _registry;
11 SendPort port; 12 SendPort port;
12 13
13 Mint() : _registry = new Map<SendPort, Purse>() { 14 Mint() : _registry = new Map<SendPort, Purse>() {
14 ReceivePort mintPort = new ReceivePort(); 15 ReceivePort mintPort = new ReceivePort();
15 port = mintPort.sendPort; 16 port = mintPort.sendPort;
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 170
170 sprouted.deposit(purse, 42); 171 sprouted.deposit(purse, 42);
171 _checkBalance(sprouted, 0 + 5 + 42); 172 _checkBalance(sprouted, 0 + 5 + 42);
172 _checkBalance(purse, 100 - 5 - 42); 173 _checkBalance(purse, 100 - 5 - 42);
173 })); 174 }));
174 })); 175 }));
175 })); 176 }));
176 })); 177 }));
177 }); 178 });
178 } 179 }
OLDNEW
« no previous file with comments | « tests/co19/co19-runtime.status ('k') | tests/isolate/unresolved_ports_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698