| Index: test/codegen/lib/typed_data/typed_data_from_list_test.dart
|
| diff --git a/test/codegen/language/issue10561_test.dart b/test/codegen/lib/typed_data/typed_data_from_list_test.dart
|
| similarity index 53%
|
| copy from test/codegen/language/issue10561_test.dart
|
| copy to test/codegen/lib/typed_data/typed_data_from_list_test.dart
|
| index 24c308c9573e4fbe400d4821e49b9b0ed23e99f4..a0e38a698d0ab326e5a1087df2ac4fcf42adf726 100644
|
| --- a/test/codegen/language/issue10561_test.dart
|
| +++ b/test/codegen/lib/typed_data/typed_data_from_list_test.dart
|
| @@ -2,16 +2,13 @@
|
| // 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.
|
|
|
| -// Regression test for dart2js that used to miscompile classes
|
| -// extending HashMap, because HashMap is patched.
|
| -
|
| -import "package:expect/expect.dart";
|
| -
|
| import 'dart:collection';
|
| -
|
| -class Foo extends Expando {
|
| -}
|
| +import 'dart:typed_data';
|
|
|
| main() {
|
| - Expect.isNull(new Foo()[new Object()]);
|
| + var list = new UnmodifiableListView([1, 2]);
|
| + var typed = new Uint8List.fromList(list);
|
| + if (typed[0] != 1 || typed[1] != 2 || typed.length != 2) {
|
| + throw 'Test failed';
|
| + }
|
| }
|
|
|