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

Unified Diff: tests/html/typed_arrays_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/typed_arrays_3_test.dart
===================================================================
--- tests/html/typed_arrays_3_test.dart (revision 14114)
+++ tests/html/typed_arrays_3_test.dart (working copy)
@@ -16,12 +16,12 @@
a1.setElements([0x50,0x60,0x70], 4);
var a2 = new Uint32Array.fromBuffer(a1.buffer);
- Expect.equals(0x00000000, a2[0]);
- Expect.equals(0x00706050, a2[1]);
+ expect(a2[0], 0x00000000);
+ expect(a2[1], 0x00706050);
a2.setElements([0x01020304], 2);
- Expect.equals(0x04, a1[8]);
- Expect.equals(0x01, a1[11]);
+ expect(a1[8], 0x04);
+ expect(a1[11], 0x01);
});
test('setElementsTest_typed', () {
@@ -30,11 +30,11 @@
a1.setElements([0x50,0x60,0x70], 4);
Uint32Array a2 = new Uint32Array.fromBuffer(a1.buffer);
- Expect.equals(0x00000000, a2[0]);
- Expect.equals(0x00706050, a2[1]);
+ expect(a2[0], 0x00000000);
+ expect(a2[1], 0x00706050);
a2.setElements([0x01020304], 2);
- Expect.equals(0x04, a1[8]);
- Expect.equals(0x01, a1[11]);
+ expect(a1[8], 0x04);
+ expect(a1[11], 0x01);
});
}

Powered by Google App Engine
This is Rietveld 408576698