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

Unified Diff: tests/html/js_interop_4_test.dart

Issue 11275054: Modified unittest to use new argument syntax. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 months 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
Index: tests/html/js_interop_4_test.dart
===================================================================
--- tests/html/js_interop_4_test.dart (revision 14156)
+++ tests/html/js_interop_4_test.dart (working copy)
@@ -24,7 +24,7 @@
// Test that our interop scheme also works from Dart to Dart.
test('dart-to-dart-same-isolate', () {
var fun = expectAsync1((message) {
- Expect.listEquals(testData, message);
+ expect(message, orderedEquals(testData));
return message.length;
});
@@ -34,13 +34,13 @@
var port2 = window.lookupPort('fun');
var result = port2.callSync(testData);
- Expect.equals(3, result);
+ expect(result, 3);
});
// Test across isolate boundary.
test('dart-to-dart-cross-isolate', () {
var fun1 = (message) {
- Expect.listEquals(testData, message);
+ expect(message, orderedEquals(testData));
return message.length;
};
@@ -51,7 +51,7 @@
// TODO(vsm): Investigate why this needs to be called asynchronously.
var done = expectAsync0(() {});
var fun2 = (message) {
- Expect.equals(3, message);
+ expect(message, 3);
window.setTimeout(done, 0);
};

Powered by Google App Engine
This is Rietveld 408576698