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

Unified Diff: tests/html/typed_arrays_2_test.dart

Issue 11184007: Support new named arguments. (Closed) Base URL: https://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_2_test.dart
diff --git a/tests/html/typed_arrays_2_test.dart b/tests/html/typed_arrays_2_test.dart
index f1824a98264d4f88c655034f820e512243e45dfc..6705833ff5a3e1e86a48402a9caf5645086bbff5 100644
--- a/tests/html/typed_arrays_2_test.dart
+++ b/tests/html/typed_arrays_2_test.dart
@@ -37,7 +37,8 @@ main() {
Expect.equals(0xCFCECDCC, a2[1]);
Expect.equals(0x03020100, a2[14]);
- a2 = new Uint32Array.fromBuffer(a1.buffer, length: 30, byteOffset: 456);
+ // OPTIONALS a2 = new Uint32Array.fromBuffer(a1.buffer, length: 30, byteOffset: 456);
Emily Fortuna 2012/10/16 19:51:17 80 char, here and mutation_observer.
Anton Muhin 2012/10/17 09:13:38 Those optionals lines should go away soon, let's k
+ a2 = new Uint32Array.fromBuffer(a1.buffer, 456, 30);
Expect.equals(30, a2.length);
Expect.equals(0xCBCAC9C8, a2[0]);
Expect.equals(0xCFCECDCC, a2[1]);
@@ -69,7 +70,8 @@ main() {
Expect.equals(0xCFCECDCC, a2[1]);
Expect.equals(0x03020100, a2[14]);
- a2 = new Uint32Array.fromBuffer(a1.buffer, length: 30, byteOffset: 456);
+ // OPTIONALS a2 = new Uint32Array.fromBuffer(a1.buffer, length: 30, byteOffset: 456);
+ a2 = new Uint32Array.fromBuffer(a1.buffer, 456, 30);
Expect.equals(30, a2.length);
Expect.equals(0xCBCAC9C8, a2[0]);
Expect.equals(0xCFCECDCC, a2[1]);

Powered by Google App Engine
This is Rietveld 408576698