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

Unified Diff: tests/isolate/mint_maker_test.dart

Issue 11301046: Restructure pkg/unittest and pkg/webdriver to follow the pub conventions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/isolate/message_test.dart ('k') | tests/isolate/multiple_timer_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/mint_maker_test.dart
===================================================================
--- tests/isolate/mint_maker_test.dart (revision 14440)
+++ tests/isolate/mint_maker_test.dart (working copy)
@@ -5,9 +5,9 @@
// Things that should be "auto-generated" are between AUTO START and
// AUTO END (or just AUTO if it's a single line).
-#library("MintMakerTest");
-#import("dart:isolate");
-#import('../../pkg/unittest/unittest.dart');
+library MintMakerTest;
+import 'dart:isolate';
+import '../../pkg/unittest/lib/unittest.dart';
class Mint {
Mint() : registry_ = new Map<SendPort, Purse>() {
@@ -222,18 +222,18 @@
deferred {
MintWrapper mint = asynccall mintMaker.createMint();
PurseWrapper purse = asynccall mint.createPurse(100);
- Expect.equals(100, asynccall purse.queryBalance());
+ expect(asynccall purse.queryBalance(), 100);
PurseWrapper sprouted = asynccall purse.sproutPurse();
- Expect.equals(0, asynccall sprouted.queryBalance());
+ expect(asynccall sprouted.queryBalance(), 0);
asynccall sprouted.deposit(purse, 5);
- Expect.equals(0 + 5, asynccall sprouted.queryBalance());
- Expect.equals(100 - 5, asynccall purse.queryBalance());
+ expect(asynccall sprouted.queryBalance(), 0 + 5);
+ expect(asynccall purse.queryBalance(), 100 - 5);
asynccall sprouted.deposit(purse, 42);
- Expect.equals(0 + 5 + 42, asynccall sprouted.queryBalance());
- Expect.equals(100 - 5 - 42, asynccall purse.queryBalance());
+ expect(asynccall sprouted.queryBalance(), 0 + 5 + 42);
+ expect(asynccall purse.queryBalance(), 100 - 5 - 42);
}
}
*/
@@ -244,18 +244,18 @@
Wrapper<MintMaker> mintMaker = spawnMintMaker();
Future<Mint> mint = mintMaker...createMint();
Future<Purse> purse = mint...createPurse(100);
- Expect.equals(100, purse.queryBalance());
+ expect(purse.queryBalance(), 100);
Future<Purse> sprouted = purse...sproutPurse();
- Expect.equals(0, sprouted.queryBalance());
+ expect(0, sprouted.queryBalance());
sprouted...deposit(purse, 5);
- Expect.equals(0 + 5, sprouted.queryBalance());
- Expect.equals(100 - 5, purse.queryBalance());
+ expect(sprouted.queryBalance(), 0 + 5);
+ expect(purse.queryBalance(), 100 - 5);
sprouted...deposit(purse, 42);
- Expect.equals(0 + 5 + 42, sprouted.queryBalance());
- Expect.equals(100 - 5 - 42, purse.queryBalance());
+ expect(sprouted.queryBalance(), 0 + 5 + 42);
+ expect(purse.queryBalance(), 100 - 5 - 42);
}
*/
}
« no previous file with comments | « tests/isolate/message_test.dart ('k') | tests/isolate/multiple_timer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698