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

Unified Diff: tests/compiler/dart2js/deferred_inline_restrictions_test.dart

Issue 2345083003: dart2js: run dartfmt on tests (Closed)
Patch Set: revert another multipart test Created 4 years, 3 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/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;
-"""};
+"""
+};

Powered by Google App Engine
This is Rietveld 408576698