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

Unified Diff: tests/isolate/count_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/compute_this_script_browser_test.dart ('k') | tests/isolate/cross_isolate_message_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/count_test.dart
===================================================================
--- tests/isolate/count_test.dart (revision 14440)
+++ tests/isolate/count_test.dart (working copy)
@@ -2,20 +2,20 @@
// 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("CountTest");
-#import('dart:isolate');
-#import('../../pkg/unittest/unittest.dart');
+library CountTest;
+import '../../pkg/unittest/lib/unittest.dart';
+import 'dart:isolate';
void countMessages() {
int count = 0;
port.receive((int message, SendPort replyTo) {
if (message == -1) {
- Expect.equals(10, count);
+ expect(count, 10);
replyTo.send(-1, null);
port.close();
return;
}
- Expect.equals(count, message);
+ expect(message, count);
count++;
replyTo.send(message * 2, null);
});
@@ -30,12 +30,12 @@
local.receive(expectAsync2((int message, SendPort replyTo) {
if (message == -1) {
- Expect.equals(11, count);
+ expect(count, 11);
local.close();
return;
}
- Expect.equals((count - 1) * 2, message);
+ expect(message, (count - 1) * 2);
remote.send(count++, reply);
if (count == 10) {
remote.send(-1, reply);
« no previous file with comments | « tests/isolate/compute_this_script_browser_test.dart ('k') | tests/isolate/cross_isolate_message_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698