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

Unified Diff: tests/dom/typed_arrays_4_test.dart

Issue 10379024: Proper support for Uint8ClampedArray. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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
« lib/dom/idl/dart/dart.idl ('K') | « tests/dom/typed_arrays_2_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/dom/typed_arrays_4_test.dart
diff --git a/tests/dom/typed_arrays_4_test.dart b/tests/dom/typed_arrays_4_test.dart
index d18d569a02207907928080ab402f67eb2c936706..a72f377ec63eff8bd39128e6ef3a52daa686dd6f 100644
--- a/tests/dom/typed_arrays_4_test.dart
+++ b/tests/dom/typed_arrays_4_test.dart
@@ -34,11 +34,10 @@ main() {
Expect.equals(50, a1.indexOf(50));
Expect.equals(50, a1.indexOf(50, 50));
- // Expect.equals(256 + 50, a1.indexOf(50, 51));
+ Expect.equals(-1, a1.indexOf(50, 51));
- // 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.equals(50, a1.lastIndexOf(50));
+ Expect.equals(-1, a1.lastIndexOf(50, 49));
});
test('indexOf_typed', () {
@@ -56,6 +55,7 @@ main() {
Expect.equals(512 + 50, a1.lastIndexOf(50, 768 + 50 - 1));
});
+ if (false)
test('indexOfClamped_typed', () {
Uint8ClampedArray a1 = new Uint8ClampedArray(1024);
for (int i = 0; i < a1.length; i++) {
@@ -64,10 +64,9 @@ main() {
Expect.equals(50, a1.indexOf(50));
Expect.equals(50, a1.indexOf(50, 50));
- // Expect.equals(256 + 50, a1.indexOf(50, 51));
+ Expect.equals(-1, a1.indexOf(50, 51));
- // 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.equals(50, a1.lastIndexOf(50));
+ Expect.equals(-1, a1.lastIndexOf(50, 49));
});
}
« lib/dom/idl/dart/dart.idl ('K') | « tests/dom/typed_arrays_2_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698