Index: tests/compiler/dart2js/serialization/test_data.dart |
diff --git a/tests/compiler/dart2js/serialization/test_data.dart b/tests/compiler/dart2js/serialization/test_data.dart |
index 568b453ea2de4a0a9dfb12c8757b467a2e32f459..9fbd2236cc3353b67f5ad1b7986b63d32c5432ce 100644 |
--- a/tests/compiler/dart2js/serialization/test_data.dart |
+++ b/tests/compiler/dart2js/serialization/test_data.dart |
@@ -644,6 +644,35 @@ test() { |
} |
''', |
}), |
+ |
+ const Test('Use of dart:indexed_db', const { |
+ 'main.dart': ''' |
+import 'a.dart'; |
+ |
+main() {} |
+''', |
+ }, preserializedSourceFiles: const { |
+ 'a.dart': ''' |
+import 'dart:indexed_db'; |
+''', |
+ }), |
+ |
+ const Test('Deferred static access', const {}, |
+ preserializedSourceFiles: const { |
+ 'main.dart': ''' |
+import 'b.dart' deferred as prefix; |
+ |
+main() => prefix.loadLibrary().then((_) => prefix.test2()); |
+''', |
+ 'b.dart': ''' |
+test2() => x; |
+var x = const ConstClass(const ConstClass(1)); |
+class ConstClass { |
+ final x; |
+ const ConstClass(this.x); |
+} |
+''', |
+ }), |
]; |
class Test { |