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

Unified Diff: tests/compiler/dart2js/source_map_d2js_validity_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_d2js_validity_test.dart
diff --git a/tests/compiler/dart2js/source_map_d2js_validity_test.dart b/tests/compiler/dart2js/source_map_d2js_validity_test.dart
index 38291446f61d6058632a45a683a8a02439df2fdb..fe4ff6ecc7eb832e741f90f2b2bc1bb6eb5a067a 100644
--- a/tests/compiler/dart2js/source_map_d2js_validity_test.dart
+++ b/tests/compiler/dart2js/source_map_d2js_validity_test.dart
@@ -16,24 +16,21 @@ void main() {
String mainFile =
'tests/compiler/dart2js/source_map_validator_test_file.dart';
asyncTest(() => createTempDir().then((Directory tmpDir) {
- print(
- 'Compiling tests/compiler/dart2js/source_map_validator_test_file.dart');
- Future<CompilationResult> result = entry.internalMain(
- [mainFile,
- '-o${tmpDir.path}/out.js',
- '--library-root=sdk']);
- return result.then((CompilationResult result) {
- CompilerImpl compiler = result.compiler;
- Uri uri =
- new Uri.file('${tmpDir.path}/out.js', windows: Platform.isWindows);
- validateSourceMap(uri,
- mainUri: Uri.base.resolve(mainFile),
- mainPosition: const Position(13, 1),
- compiler: compiler);
+ print(
+ 'Compiling tests/compiler/dart2js/source_map_validator_test_file.dart');
+ Future<CompilationResult> result = entry.internalMain(
+ [mainFile, '-o${tmpDir.path}/out.js', '--library-root=sdk']);
+ return result.then((CompilationResult result) {
+ CompilerImpl compiler = result.compiler;
+ Uri uri = new Uri.file('${tmpDir.path}/out.js',
+ windows: Platform.isWindows);
+ validateSourceMap(uri,
+ mainUri: Uri.base.resolve(mainFile),
+ mainPosition: const Position(13, 1),
+ compiler: compiler);
- print("Deleting '${tmpDir.path}'.");
- tmpDir.deleteSync(recursive: true);
- });
- }));
+ print("Deleting '${tmpDir.path}'.");
+ tmpDir.deleteSync(recursive: true);
+ });
+ }));
}
-
« no previous file with comments | « tests/compiler/dart2js/size_test.dart ('k') | tests/compiler/dart2js/source_map_deferred_d2js_validity_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698