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

Unified Diff: tests/isolate/nested_spawn_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/nested_spawn2_test.dart ('k') | tests/isolate/port_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/nested_spawn_test.dart
===================================================================
--- tests/isolate/nested_spawn_test.dart (revision 14440)
+++ tests/isolate/nested_spawn_test.dart (working copy)
@@ -4,16 +4,16 @@
// Dart test program for testing that isolates can spawn other isolates.
-#library('NestedSpawnTest');
-#import("dart:isolate");
-#import('../../pkg/unittest/unittest.dart');
+library NestedSpawnTest;
+import 'dart:isolate';
+import '../../pkg/unittest/lib/unittest.dart';
void isolateA() {
port.receive((msg, replyTo) {
- Expect.equals("launch nested!", msg);
+ expect(msg, "launch nested!");
SendPort p = spawnFunction(isolateB);
p.call("alive?").then((msg) {
- Expect.equals("and kicking", msg);
+ expect(msg, "and kicking");
replyTo.send(499, null);
port.close();
});
@@ -22,7 +22,7 @@
void isolateB() {
port.receive((msg, replyTo) {
- Expect.equals("alive?", msg);
+ expect(msg, "alive?");
replyTo.send("and kicking", null);
port.close();
});
@@ -33,7 +33,7 @@
test("spawned isolates can spawn nested isolates", () {
SendPort port = spawnFunction(isolateA);
port.call("launch nested!").then(expectAsync1((msg) {
- Expect.equals(499, msg);
+ expect(msg, 499);
}));
});
}
« no previous file with comments | « tests/isolate/nested_spawn2_test.dart ('k') | tests/isolate/port_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698