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

Unified Diff: tests/compiler/dart2js/source_map_deferred_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_deferred_d2js_validity_test.dart
diff --git a/tests/compiler/dart2js/source_map_deferred_d2js_validity_test.dart b/tests/compiler/dart2js/source_map_deferred_d2js_validity_test.dart
index 0afe96e032b18208b1452a593d8c31d9908e6943..e15471c9db9bf84c37d6eae0bc9579cd1b224235 100644
--- a/tests/compiler/dart2js/source_map_deferred_d2js_validity_test.dart
+++ b/tests/compiler/dart2js/source_map_deferred_d2js_validity_test.dart
@@ -14,28 +14,25 @@ import 'source_map_validator_helper.dart';
void main() {
asyncTest(() => createTempDir().then((Directory tmpDir) {
- String file =
- 'tests/compiler/dart2js/source_map_deferred_validator_test_file.dart';
- print("Compiling $file");
- Future result = entry.internalMain(
- [file,
- '-o${tmpDir.path}/out.js',
- '--library-root=sdk']);
- return result.then((CompilationResult result) {
- CompilerImpl compiler = result.compiler;
- Uri mainUri = new Uri.file('${tmpDir.path}/out.js',
- windows: Platform.isWindows);
- Uri deferredUri = new Uri.file('${tmpDir.path}/out.js_1.part.js',
- windows: Platform.isWindows);
- validateSourceMap(mainUri,
- mainUri: Uri.base.resolve(file),
- mainPosition: const Position(7, 1),
- compiler: compiler);
- validateSourceMap(deferredUri,
- compiler: compiler);
+ String file =
+ 'tests/compiler/dart2js/source_map_deferred_validator_test_file.dart';
+ print("Compiling $file");
+ Future result = entry.internalMain(
+ [file, '-o${tmpDir.path}/out.js', '--library-root=sdk']);
+ return result.then((CompilationResult result) {
+ CompilerImpl compiler = result.compiler;
+ Uri mainUri = new Uri.file('${tmpDir.path}/out.js',
+ windows: Platform.isWindows);
+ Uri deferredUri = new Uri.file('${tmpDir.path}/out.js_1.part.js',
+ windows: Platform.isWindows);
+ validateSourceMap(mainUri,
+ mainUri: Uri.base.resolve(file),
+ mainPosition: const Position(7, 1),
+ compiler: compiler);
+ validateSourceMap(deferredUri, compiler: compiler);
- print("Deleting '${tmpDir.path}'.");
- tmpDir.deleteSync(recursive: true);
- });
- }));
+ print("Deleting '${tmpDir.path}'.");
+ tmpDir.deleteSync(recursive: true);
+ });
+ }));
}

Powered by Google App Engine
This is Rietveld 408576698