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 6dfa0955e80f85ede5e2c807c8acd326a48cc1f9..5c83942b353628b2f13d322894e72324b87768c0 100644 |
--- a/tests/compiler/dart2js/serialization/test_data.dart |
+++ b/tests/compiler/dart2js/serialization/test_data.dart |
@@ -454,6 +454,25 @@ class A { |
} |
''', |
}), |
+ |
+ const Test('Deferred prefix loadLibrary', const { |
+ 'main.dart': ''' |
+import 'a.dart'; |
+ |
+main() { |
+ test(); |
+} |
+''', |
+ }, preserializedSourceFiles: const { |
+ 'a.dart': ''' |
+import 'b.dart' deferred as pre; |
+test() { |
+ pre.loadLibrary(); |
+} |
+''', |
+ 'b.dart': ''' |
+''', |
+ }), |
]; |
class Test { |