Chromium Code Reviews

Unified Diff: sdk/lib/_internal/pub/test/transformer/dart2js/includes_source_map_urls_test.dart

Issue 194863003: Don't include source maps in release mode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Don't include source maps at all in release builds. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: sdk/lib/_internal/pub/test/transformer/dart2js/includes_source_map_urls_test.dart
diff --git a/sdk/lib/_internal/pub/test/transformer/dart2js/includes_source_map_urls_test.dart b/sdk/lib/_internal/pub/test/transformer/dart2js/includes_source_map_urls_test.dart
deleted file mode 100644
index ee5587a21376abe18c856ba39d121f8588193d2f..0000000000000000000000000000000000000000
--- a/sdk/lib/_internal/pub/test/transformer/dart2js/includes_source_map_urls_test.dart
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS d.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.
-
-library pub_tests;
-
-import 'package:scheduled_test/scheduled_test.dart';
-
-import '../../descriptor.dart' as d;
-import '../../test_pub.dart';
-
-main() {
- initConfig();
- integration("includes proper URLs in generated JS and source map", () {
- d.dir(appPath, [
- d.appPubspec(),
- d.dir("web", [
- d.file("main.dart", "void main() => print('hello');")
- ])
- ]).create();
-
- schedulePub(args: ["build"],
- output: new RegExp(r'Built 3 files to "build".'),
- exitCode: 0);
-
- d.dir(appPath, [
- d.dir('build', [
- d.dir('web', [
- d.matcherFile('main.dart.js', allOf([
- contains("# sourceMappingURL=main.dart.js.map"),
- contains("@ sourceMappingURL=main.dart.js.map")
- ])),
- d.matcherFile('main.dart.js.map', contains('"file": "main.dart.js"'))
- ])
- ])
- ]).validate();
- });
-}

Powered by Google App Engine