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

Unified Diff: test/codegen/lib/typed_data/typed_data_from_list_test.dart

Issue 1673863002: Infra for running lib tests (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Reformat Created 4 years, 10 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: 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';
+ }
}

Powered by Google App Engine
This is Rietveld 408576698