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

Unified Diff: tests/lib/typed_data/setRange_2_test.dart

Issue 105273005: Redo "Redo "Use TypedArray.set for setRange of between similarly typed lists implemented as TypedAr… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years 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
« no previous file with comments | « tests/lib/typed_data/setRange_1_test.dart ('k') | tests/lib/typed_data/setRange_3_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/typed_data/setRange_2_test.dart
diff --git a/tests/lib/typed_data/int32x4_bigint_test.dart b/tests/lib/typed_data/setRange_2_test.dart
similarity index 52%
copy from tests/lib/typed_data/int32x4_bigint_test.dart
copy to tests/lib/typed_data/setRange_2_test.dart
index 539b23f2cfed11134f036f6f32b3800f60e50700..83abbba6508f515fabe355140700a734363eb179 100644
--- a/tests/lib/typed_data/int32x4_bigint_test.dart
+++ b/tests/lib/typed_data/setRange_2_test.dart
@@ -1,16 +1,17 @@
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-// VMOptions=--deoptimization_counter_threshold=1000 --optimization-counter-threshold=10
-
-// Library tag to be able to run in html test framework.
-library int32x4_bigint_test;
+import 'setRange_lib.dart';
import 'package:expect/expect.dart';
import 'dart:typed_data';
+sameElementSizeTest() {
+ // Views of elements with the same size but different 'types'.
+ checkSameSize(makeInt16List, makeInt16View, makeUint16View);
+ checkSameSize(makeInt16List, makeUint16View, makeInt16View);
+}
+
main() {
- var n = 18446744073709551617;
- var x = new Int32x4(n, 0, 0, 0);
- Expect.equals(x.x, 1);
+ sameElementSizeTest();
}
« no previous file with comments | « tests/lib/typed_data/setRange_1_test.dart ('k') | tests/lib/typed_data/setRange_3_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698