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

Unified Diff: tests/html/js_interop_3_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_3_test.dart
===================================================================
--- tests/html/js_interop_3_test.dart (revision 14156)
+++ tests/html/js_interop_3_test.dart (working copy)
@@ -28,10 +28,10 @@
test('js-to-dart', () {
var fun1 = (message) {
- Expect.equals('Hello', message['a']);
- Expect.equals('World', message['b']);
- Expect.equals(42, message['c']);
- Expect.equals(3, message.keys.length);
+ expect(message['a'], 'Hello');
+ expect(message['b'], 'World');
+ expect(message['c'], 42);
+ expect(message.keys.length, 3);
return 42;
};
@@ -42,7 +42,7 @@
// TODO(vsm): Investigate why this needs to be called asynchronously.
var done = expectAsync0(() {});
var fun2 = (message) {
- Expect.equals(42, message);
+ expect(message, 42);
window.setTimeout(done, 0);
};

Powered by Google App Engine
This is Rietveld 408576698