d406ed04fc
R=sigmund@google.com Review URL: https://codereview.chromium.org//535413002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39842 260f80e4-7a28-3924-810f-c04153c831b5
28 lines
891 B
Dart
28 lines
891 B
Dart
// 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';
|
|
import 'package:unittest/unittest.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;''',
|
|
});
|
|
}
|