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

Unified Diff: tests/compiler/dart2js/deferred_follow_constant_dependencies_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_follow_constant_dependencies_test.dart
diff --git a/tests/compiler/dart2js/deferred_follow_constant_dependencies_test.dart b/tests/compiler/dart2js/deferred_follow_constant_dependencies_test.dart
index 0f10523a5b4c1c8677cbd6217b24edffaf25f724..4fd0b58f54ae6b1b9eb36614382b710afe1905ea 100644
--- a/tests/compiler/dart2js/deferred_follow_constant_dependencies_test.dart
+++ b/tests/compiler/dart2js/deferred_follow_constant_dependencies_test.dart
@@ -32,14 +32,16 @@ void main() {
backend.constants.compiledConstants.forEach(addConstantWithDependendencies);
for (String stringValue in ["cA", "cB", "cC"]) {
ConstantValue constant = allConstants.firstWhere((constant) {
- return constant.isString
- && constant.primitiveValue.slowToString() == stringValue;
+ return constant.isString &&
+ constant.primitiveValue.slowToString() == stringValue;
});
Expect.notEquals(null, outputUnitForConstant(constant),
"Constant value ${constant.toStructuredText()} has no output unit.");
- Expect.notEquals(mainOutputUnit, outputUnitForConstant(constant),
+ Expect.notEquals(
+ mainOutputUnit,
+ outputUnitForConstant(constant),
"Constant value ${constant.toStructuredText()} "
- "is in the main output unit.");
+ "is in the main output unit.");
}
});
}
@@ -54,17 +56,20 @@ void main() {
// lib1 and lib2 also import lib4 deferred, but lib1 uses lib4.bar1 and lib2
// uses lib4.bar2. So two output units should be created for lib4, one for each
// import.
-const Map MEMORY_SOURCE_FILES = const {"main.dart": """
+const Map MEMORY_SOURCE_FILES = const {
+ "main.dart": """
import 'lib.dart' deferred as lib;
void main() {
print(lib.L);
}
-""", "lib.dart": """
+""",
+ "lib.dart": """
class C {
final a;
const C(this.a);
}
const L = const {"cA": const C(const {"cB": "cC"})};
-""",};
+""",
+};

Powered by Google App Engine
This is Rietveld 408576698