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

Unified Diff: pkg/polymer/test/build/remove_sourcemap_comment_test.dart

Issue 531943002: delete debug only files from output in release mode (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: nits Created 6 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
« no previous file with comments | « pkg/polymer/pubspec.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/test/build/remove_sourcemap_comment_test.dart
diff --git a/pkg/polymer/test/build/remove_sourcemap_comment_test.dart b/pkg/polymer/test/build/remove_sourcemap_comment_test.dart
new file mode 100644
index 0000000000000000000000000000000000000000..44d1f455b4d7e3142379669bebcdddef0c8f7b79
--- /dev/null
+++ b/pkg/polymer/test/build/remove_sourcemap_comment_test.dart
@@ -0,0 +1,27 @@
+// Copyright (c) 2013, 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.
+
+library polymer.test.build.remove_sourcemap_comment_test;
+
+import 'package:barback/barback.dart';
+import 'package:polymer/src/build/remove_sourcemap_comment.dart';
+import 'package:unittest/compact_vm_config.dart';
+import 'package:unittest/unittest.dart';
+import 'common.dart';
+
+final phases = [[new RemoveSourcemapComment.asPlugin(
+ new BarbackSettings({}, BarbackMode.RELEASE))]];
+
+void main() {
+ useCompactVMConfiguration();
+
+ testPhases('removes sourcemap comments', phases, {
+ 'a|web/test.js': '''
+ var i = 0;
+ //# sourceMappingURL=*.map''',
+ }, {
+ 'a|web/test.js': '''
+ var i = 0;''',
+ });
+}
« no previous file with comments | « pkg/polymer/pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698