| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * Tests for [PathInfo]. All other info types are produced by the analyzer and | 6 * Tests for [PathInfo]. All other info types are produced by the analyzer and |
| 7 * tested in analyzer test. | 7 * tested in analyzer test. |
| 8 */ | 8 */ |
| 9 library path_info_test; | 9 library path_info_test; |
| 10 | 10 |
| 11 import 'package:unittest/unittest.dart'; | 11 import 'package:unittest/unittest.dart'; |
| 12 import 'package:unittest/vm_config.dart'; | 12 import 'package:unittest/vm_config.dart'; |
| 13 import 'package:web_components/src/info.dart'; | 13 import 'package:web_ui/src/info.dart'; |
| 14 import 'package:web_components/src/file_system/path.dart' show Path; | 14 import 'package:web_ui/src/file_system/path.dart' show Path; |
| 15 import 'testing.dart'; | 15 import 'testing.dart'; |
| 16 | 16 |
| 17 | 17 |
| 18 main() { | 18 main() { |
| 19 useVmConfiguration(); | 19 useVmConfiguration(); |
| 20 useMockMessages(); | 20 useMockMessages(); |
| 21 group('outdir == basedir:', () { | 21 group('outdir == basedir:', () { |
| 22 group('outputPath', () { | 22 group('outputPath', () { |
| 23 test('mangle automatic', () { | 23 test('mangle automatic', () { |
| 24 var paths = _newPathInfo('a', 'a', false); | 24 var paths = _newPathInfo('a', 'a', false); |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 } | 243 } |
| 244 | 244 |
| 245 _newPathInfo(String baseDir, String outDir, bool forceMangle) => | 245 _newPathInfo(String baseDir, String outDir, bool forceMangle) => |
| 246 new PathInfo(new Path(baseDir), new Path(outDir), forceMangle); | 246 new PathInfo(new Path(baseDir), new Path(outDir), forceMangle); |
| 247 | 247 |
| 248 _mockFile(String path) => new FileInfo(new Path(path)); | 248 _mockFile(String path) => new FileInfo(new Path(path)); |
| 249 | 249 |
| 250 _checkPath(String path, String expected) { | 250 _checkPath(String path, String expected) { |
| 251 expect(new Path(path).canonicalize().toString(), expected); | 251 expect(new Path(path).canonicalize().toString(), expected); |
| 252 } | 252 } |
| OLD | NEW |