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

Unified Diff: tests/compiler/dart2js/source_map_d2js_consistency_test.dart

Issue 219263003: Add end-to-end test for consistency in source map file and js file. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Removed pub serve test. Created 6 years, 9 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_consistency_test.dart
diff --git a/tests/compiler/dart2js/source_map_d2js_consistency_test.dart b/tests/compiler/dart2js/source_map_d2js_consistency_test.dart
new file mode 100644
index 0000000000000000000000000000000000000000..4b252016e1a2c1ab052e683d645da148c938b72c
--- /dev/null
+++ b/tests/compiler/dart2js/source_map_d2js_consistency_test.dart
@@ -0,0 +1,28 @@
+// 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 'source_map_consistency_helper.dart';
+import '../../../sdk/lib/_internal/compiler/implementation/dart2js.dart' as entry;
+
+void main() {
+ asyncTest(() => createTempDir().then((Directory tmpDir) {
+ print('Compiling tests/compiler/dart2js/exit_code_helper.dart');
+ Future result =
+ entry.internalMain(['tests/compiler/dart2js/exit_code_helper.dart',
+ '-o${tmpDir.path}/out.js',
+ '--library-root=sdk']);
+ return result.then((_) {
+ Uri uri =
+ new Uri.file('${tmpDir.path}/out.js', windows: Platform.isWindows);
+ checkConsistency(uri);
+
+ print("Deleting '${tmpDir.path}'.");
+ tmpDir.deleteSync(recursive: true);
+ });
+ }));
+}

Powered by Google App Engine
This is Rietveld 408576698