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

Unified Diff: tests/html/typed_arrays_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/typed_arrays_4_test.dart
===================================================================
--- tests/html/typed_arrays_4_test.dart (revision 14156)
+++ tests/html/typed_arrays_4_test.dart (working copy)
@@ -16,13 +16,13 @@
a1[i] = i;
}
- Expect.equals(50, a1.indexOf(50));
- Expect.equals(50, a1.indexOf(50, 50));
- Expect.equals(256 + 50, a1.indexOf(50, 51));
+ expect(a1.indexOf(50), 50);
+ expect(a1.indexOf(50, 50), 50);
+ expect(a1.indexOf(50, 51), 256 + 50);
- Expect.equals(768 + 50, a1.lastIndexOf(50));
- Expect.equals(768 + 50, a1.lastIndexOf(50, 768 + 50));
- Expect.equals(512 + 50, a1.lastIndexOf(50, 768 + 50 - 1));
+ expect(a1.lastIndexOf(50), 768 + 50);
+ expect(a1.lastIndexOf(50, 768 + 50), 768 + 50);
+ expect(a1.lastIndexOf(50, 768 + 50 - 1), 512 + 50);
});
test('indexOf_typed', () {
@@ -31,12 +31,12 @@
a1[i] = i;
}
- Expect.equals(50, a1.indexOf(50));
- Expect.equals(50, a1.indexOf(50, 50));
- Expect.equals(256 + 50, a1.indexOf(50, 51));
+ expect(a1.indexOf(50), 50);
+ expect(a1.indexOf(50, 50), 50);
+ expect(a1.indexOf(50, 51), 256 + 50);
- Expect.equals(768 + 50, a1.lastIndexOf(50));
- Expect.equals(768 + 50, a1.lastIndexOf(50, 768 + 50));
- Expect.equals(512 + 50, a1.lastIndexOf(50, 768 + 50 - 1));
+ expect(a1.lastIndexOf(50), 768 + 50);
+ expect(a1.lastIndexOf(50, 768 + 50), 768 + 50);
+ expect(a1.lastIndexOf(50, 768 + 50 - 1), 512 + 50);
});
}

Powered by Google App Engine
This is Rietveld 408576698