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

Unified Diff: tests/isolate/cross_isolate_message_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/count_test.dart ('k') | tests/isolate/isolate3_negative_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/cross_isolate_message_test.dart
===================================================================
--- tests/isolate/cross_isolate_message_test.dart (revision 14440)
+++ tests/isolate/cross_isolate_message_test.dart (working copy)
@@ -5,9 +5,9 @@
// Dart test program for testing that isolates can communicate to isolates
// other than the main isolate.
-#library('CrossIsolateMessageTest');
-#import('dart:isolate');
-#import('../../pkg/unittest/unittest.dart');
+library CrossIsolateMessageTest;
+import 'dart:isolate';
+import '../../pkg/unittest/lib/unittest.dart';
void crossIsolate1() {
port.receive((msg, replyTo) {
@@ -44,12 +44,12 @@
// Create a new receive port and send it to isolate2.
ReceivePort myPort = new ReceivePort();
port2.call(myPort.toSendPort()).then(expectAsync1((msg) {
- Expect.equals("ready", msg[0]);
+ expect(msg[0], "ready");
// Send port of isolate2 to isolate1.
port1.call(msg[1]).then(expectAsync1((msg) {
- Expect.equals("ready", msg[0]);
+ expect(msg[0], "ready");
myPort.receive(expectAsync2((msg, replyTo) {
- Expect.equals(499, msg);
+ expect(msg, 499);
myPort.close();
}));
msg[1].send(42, null);
« no previous file with comments | « tests/isolate/count_test.dart ('k') | tests/isolate/isolate3_negative_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698