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

Unified Diff: tests/compiler/dart2js/kernel/closed_world_from_dill_test.dart

Issue 2990983002: Handle NativeTypedArray in closed_world_from_dill_test (Closed)
Patch Set: Created 3 years, 5 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/compiler/dart2js/kernel/closed_world_from_dill_test.dart
diff --git a/tests/compiler/dart2js/kernel/closed_world_from_dill_test.dart b/tests/compiler/dart2js/kernel/closed_world_from_dill_test.dart
index 46cf7f5d5a08e284365691656efd19b1a6e3e21a..1ccef1a94b6d641c717388193fd224d160650c67 100644
--- a/tests/compiler/dart2js/kernel/closed_world_from_dill_test.dart
+++ b/tests/compiler/dart2js/kernel/closed_world_from_dill_test.dart
@@ -17,6 +17,7 @@ import 'package:compiler/src/elements/types.dart';
import 'package:compiler/src/enqueue.dart';
import 'package:compiler/src/kernel/element_map.dart';
import 'package:compiler/src/kernel/kernel_strategy.dart';
+import 'package:compiler/src/resolution/class_hierarchy.dart';
import 'package:compiler/src/resolution/enum_creator.dart';
import 'package:compiler/src/universe/world_builder.dart';
import 'package:compiler/src/world.dart';
@@ -31,6 +32,7 @@ import 'compiler_helper.dart';
const SOURCE = const {
'main.dart': '''
import 'dart:html';
+import 'dart:typed_data';
import 'package:expect/expect.dart';
class ClassWithSetter {
@@ -74,6 +76,7 @@ main() {
method1(); // Both top level and instance method named 'method1' are live.
#main; // Use a const symbol.
const Symbol('foo'); // Use the const Symbol constructor directly
+ new Int8List(0); // Use redirect factory to abstract native class
}
'''
};
@@ -101,6 +104,7 @@ Future<ResultKind> mainInternal(List<String> args,
enableDebugMode();
EnumCreator.matchKernelRepresentationForTesting = true;
+ useOptimizedMixins = true;
Directory dir = await Directory.systemTemp.createTemp('dart2js-with-dill');
print('--- create temp directory $dir -------------------------------');

Powered by Google App Engine
This is Rietveld 408576698