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

Unified Diff: tests/compiler/dart2js/deferred_dont_inline_deferred_globals_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_dont_inline_deferred_globals_test.dart
diff --git a/tests/compiler/dart2js/deferred_dont_inline_deferred_globals_test.dart b/tests/compiler/dart2js/deferred_dont_inline_deferred_globals_test.dart
index 46674f001905faa61d18cdbdd4ffa9b6f3e61b9e..4bf5bb6be504065c7cf9dfe2fc4f93373da89707 100644
--- a/tests/compiler/dart2js/deferred_dont_inline_deferred_globals_test.dart
+++ b/tests/compiler/dart2js/deferred_dont_inline_deferred_globals_test.dart
@@ -15,8 +15,7 @@ void main() {
OutputCollector collector = new OutputCollector();
asyncTest(() async {
CompilationResult result = await runCompiler(
- memorySourceFiles: MEMORY_SOURCE_FILES,
- outputProvider: collector);
+ memorySourceFiles: MEMORY_SOURCE_FILES, outputProvider: collector);
Compiler compiler = result.compiler;
lookupLibrary(name) {
return compiler.libraryLoader.lookupLibrary(Uri.parse(name));
@@ -45,7 +44,8 @@ void main() {
}
// Make sure that deferred constants are not inlined into the main hunk.
-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;
@@ -58,8 +58,10 @@ void main() {
print(lib1.globalVar);
});
}
-""", "lib1.dart": """
+""",
+ "lib1.dart": """
import "main.dart" as main;
final finalVar = "string1";
var globalVar = "string2";
-"""};
+"""
+};

Powered by Google App Engine
This is Rietveld 408576698