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

Unified Diff: tests/html/typed_arrays_3_test.dart

Issue 12929005: dart:typeddata for dart2js (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revert status change Created 7 years, 9 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
diff --git a/tests/html/typed_arrays_3_test.dart b/tests/html/typed_arrays_3_test.dart
index 682b09e57d1d84647b30f6381849b193ccd02f45..f7fcd356044d8d98321734738d95cdfb1b1919df 100644
--- a/tests/html/typed_arrays_3_test.dart
+++ b/tests/html/typed_arrays_3_test.dart
@@ -5,22 +5,22 @@
library TypedArrays3Test;
import '../../pkg/unittest/lib/unittest.dart';
import '../../pkg/unittest/lib/html_config.dart';
-import 'dart:html';
+import 'dart:typeddata';
main() {
useHtmlConfiguration();
// Only perform tests if ArrayBuffer is supported.
- if (!ArrayBuffer.supported) {
+ if (!ByteBuffer.supported) {
return;
}
test('setElementsTest_dynamic', () {
- var a1 = new Int8Array(1024);
+ var a1 = new Int8List(1024);
a1.setElements([0x50,0x60,0x70], 4);
- var a2 = new Uint32Array.fromBuffer(a1.buffer);
+ var a2 = new Uint32List.fromBuffer(a1.buffer);
expect(a2[0], 0x00000000);
expect(a2[1], 0x00706050);
@@ -30,11 +30,11 @@ main() {
});
test('setElementsTest_typed', () {
- Int8Array a1 = new Int8Array(1024);
+ Int8List a1 = new Int8List(1024);
a1.setElements([0x50,0x60,0x70], 4);
- Uint32Array a2 = new Uint32Array.fromBuffer(a1.buffer);
+ Uint32List a2 = new Uint32List.fromBuffer(a1.buffer);
expect(a2[0], 0x00000000);
expect(a2[1], 0x00706050);

Powered by Google App Engine
This is Rietveld 408576698