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

Unified Diff: tests/compiler/dart2js/deferred_not_in_main_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_not_in_main_test.dart
diff --git a/tests/compiler/dart2js/deferred_not_in_main_test.dart b/tests/compiler/dart2js/deferred_not_in_main_test.dart
index 2955879efcd3d0148da923ba04c0dd61c0f43633..9e452239e20488df3b0de2545927160d1ffe7d97 100644
--- a/tests/compiler/dart2js/deferred_not_in_main_test.dart
+++ b/tests/compiler/dart2js/deferred_not_in_main_test.dart
@@ -18,8 +18,7 @@ void main() {
void deferredTest1() {
asyncTest(() async {
- CompilationResult result =
- await runCompiler(memorySourceFiles: TEST1);
+ CompilationResult result = await runCompiler(memorySourceFiles: TEST1);
Compiler compiler = result.compiler;
lookupLibrary(name) {
@@ -63,7 +62,7 @@ void deferredTest2() {
// lib1 imports lib2 deferred. But mainlib never uses DeferredLibrary.
// Test that this case works.
const Map TEST1 = const {
- "main.dart":"""
+ "main.dart": """
library mainlib;
import 'lib1.dart' as lib1;
@@ -72,7 +71,7 @@ void main() {
lib1.foo1();
}
""",
- "lib1.dart":"""
+ "lib1.dart": """
library lib1;
import 'lib2.dart' deferred as lib2;
@@ -83,7 +82,7 @@ void foo1() {
lib1.loadLibrary().then((_) => lib2.foo2());
}
""",
- "lib2.dart":"""
+ "lib2.dart": """
library lib2;
void foo2() {}
@@ -93,7 +92,7 @@ void foo2() {}
// main indirectly uses class A from shared. A should still be included in the
// main fragment.
const Map TEST2 = const {
- "main.dart":"""
+ "main.dart": """
import 'def.dart' deferred as def;
import 'shared.dart';
@@ -106,12 +105,12 @@ main() {
});
}
""",
- "def.dart":"""
+ "def.dart": """
import 'shared.dart';
toto() { print(new A()); }
""",
- "shared.dart":"""
+ "shared.dart": """
class A {}
class B extends A {}
foo(B b) => null;
« no previous file with comments | « tests/compiler/dart2js/deferred_mirrors_test.dart ('k') | tests/compiler/dart2js/diagnose_ambiguous_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698