blob: 60de83f0e518ac8d81af940b88cc6893c8638ea8 [file] [log] [blame]
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:async';
import 'dart:io';
import 'package:async_helper/async_helper.dart';
import 'package:compiler/src/dart2js.dart' as entry;
import 'package:compiler/src/apiimpl.dart';
import 'source_map_validator_helper.dart';
import 'compiler_alt.dart' as alt;
void main() {
entry.compileFunc = alt.compile;
asyncTest(() => createTempDir().then((Directory tmpDir) {
'Compiling tests/compiler/dart2js/source_map_validator_test_file.dart');
Future result = entry.internalMain(
return result.then((_) {
Compiler compiler = alt.compiler;
Uri uri =
new Uri.file('${tmpDir.path}/out.js', windows: Platform.isWindows);
validateSourceMap(uri, compiler);
print("Deleting '${tmpDir.path}'.");
tmpDir.deleteSync(recursive: true);