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

Unified Diff: tests/isolate/request_reply_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/port_test.dart ('k') | tests/isolate/spawn_function_custom_class_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/request_reply_test.dart
===================================================================
--- tests/isolate/request_reply_test.dart (revision 14440)
+++ tests/isolate/request_reply_test.dart (working copy)
@@ -2,10 +2,10 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-#library("RequestReplyTest");
+library RequestReplyTest;
-#import("dart:isolate");
-#import('../../pkg/unittest/unittest.dart');
+import 'dart:isolate';
+import '../../pkg/unittest/lib/unittest.dart';
void entry() {
port.receive((message, SendPort replyTo) {
@@ -18,7 +18,7 @@
test("call", () {
SendPort port = spawnFunction(entry);
port.call(42).then(expectAsync1((message) {
- Expect.equals(42 + 87, message);
+ expect(message, 42 + 87);
}));
});
@@ -27,7 +27,7 @@
ReceivePort reply = new ReceivePort();
port.send(99, reply.toSendPort());
reply.receive(expectAsync2((message, replyTo) {
- Expect.equals(99 + 87, message);
+ expect(message, 99 + 87);
reply.close();
}));
});
« no previous file with comments | « tests/isolate/port_test.dart ('k') | tests/isolate/spawn_function_custom_class_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698