Index: tests/compiler/dart2js/deferred_inline_restrictions_test.dart |
diff --git a/tests/compiler/dart2js/deferred_inline_restrictions_test.dart b/tests/compiler/dart2js/deferred_inline_restrictions_test.dart |
index 14d0a7bce15a00cfda590ef836ae6f3aaf33cb2e..6014f36326c7fe8abd26855b48433ef01f99f8e0 100644 |
--- a/tests/compiler/dart2js/deferred_inline_restrictions_test.dart |
+++ b/tests/compiler/dart2js/deferred_inline_restrictions_test.dart |
@@ -14,8 +14,7 @@ void main() { |
asyncTest(() async { |
OutputCollector collector = new OutputCollector(); |
CompilationResult result = await runCompiler( |
- memorySourceFiles: MEMORY_SOURCE_FILES, |
- outputProvider: collector); |
+ memorySourceFiles: MEMORY_SOURCE_FILES, outputProvider: collector); |
Compiler compiler = result.compiler; |
lookupLibrary(name) { |
@@ -63,7 +62,8 @@ void main() { |
// Make sure that empty functions are inlined and that functions from |
// main also are inlined (assuming normal heuristics). |
-const Map MEMORY_SOURCE_FILES = const {"main.dart": """ |
+const Map MEMORY_SOURCE_FILES = const { |
+ "main.dart": """ |
import "dart:async"; |
import 'lib1.dart' deferred as lib1; |
@@ -81,7 +81,8 @@ void main() { |
}); |
}); |
} |
-""", "lib1.dart": """ |
+""", |
+ "lib1.dart": """ |
import "main.dart" as main; |
import "lib3.dart" as lib3; |
@@ -93,12 +94,15 @@ test() { |
print(main.inlineFromMain("should be inlined")); |
print(lib3.sameContextInline("should be inlined")); |
} |
-""", "lib2.dart": """ |
+""", |
+ "lib2.dart": """ |
import "lib3.dart" as lib3; |
test() { |
print(lib3.sameContextInline("should be inlined")); |
} |
-""", "lib3.dart": """ |
+""", |
+ "lib3.dart": """ |
sameContextInline(x) => "inline same context" + x; |
-"""}; |
+""" |
+}; |