| Index: packages/code_transformers/test/remove_sourcemap_comment_test.dart
|
| diff --git a/packages/code_transformers/test/remove_sourcemap_comment_test.dart b/packages/code_transformers/test/remove_sourcemap_comment_test.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f4cdf332e07a3e32d10ffe07831b85dd609b599f
|
| --- /dev/null
|
| +++ b/packages/code_transformers/test/remove_sourcemap_comment_test.dart
|
| @@ -0,0 +1,30 @@
|
| +// 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 code_transformers.test.remove_sourcemap_comment_test;
|
| +
|
| +import 'package:barback/barback.dart';
|
| +import 'package:code_transformers/src/remove_sourcemap_comment.dart';
|
| +import 'package:code_transformers/tests.dart';
|
| +import 'package:unittest/compact_vm_config.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;''',
|
| + });
|
| +}
|
|
|