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

Unified Diff: tests/compiler/dart2js/source_map_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/source_map_test.dart
diff --git a/tests/compiler/dart2js/source_map_test.dart b/tests/compiler/dart2js/source_map_test.dart
index 3d3c2ea0c305c767f464ec3bb77ab166742625a0..4d8cb5aa7d568ae30254a35eb19b33ff943b71e5 100644
--- a/tests/compiler/dart2js/source_map_test.dart
+++ b/tests/compiler/dart2js/source_map_test.dart
@@ -24,7 +24,8 @@ void find(String text, String substring, bool expected) {
Expect.isTrue(found, 'Expected "$substring" in:\n$text');
}
if (!expected && found) {
- Expect.isFalse(found,
+ Expect.isFalse(
+ found,
'Unexpected "$substring" in:\n'
'${text.substring(text.indexOf(substring))}');
}
@@ -67,9 +68,15 @@ void main() {
await test();
await test(sourceMap: 'file:/out.js.map');
await test(out: 'file:/out.js');
- await test(out: 'file:/out.js', sourceMap: 'file:/out.js.map',
- file: 'out.js', mapping: 'out.js.map');
- await test(out: 'file:/dir/out.js', sourceMap: 'file:/dir/out.js.map',
- file: 'out.js', mapping: 'out.js.map');
+ await test(
+ out: 'file:/out.js',
+ sourceMap: 'file:/out.js.map',
+ file: 'out.js',
+ mapping: 'out.js.map');
+ await test(
+ out: 'file:/dir/out.js',
+ sourceMap: 'file:/dir/out.js.map',
+ file: 'out.js',
+ mapping: 'out.js.map');
});
-}
+}

Powered by Google App Engine
This is Rietveld 408576698