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 /** Tests for [PathMapper]. */ | 5 /** Tests for [PathMapper]. */ |
6 library path_info_test; | 6 library path_info_test; |
7 | 7 |
8 import 'package:pathos/path.dart' as path; | 8 import 'package:path/path.dart' as path; |
9 import 'package:unittest/compact_vm_config.dart'; | 9 import 'package:unittest/compact_vm_config.dart'; |
10 import 'package:unittest/unittest.dart'; | 10 import 'package:unittest/unittest.dart'; |
11 import 'package:web_ui/src/info.dart'; | 11 import 'package:web_ui/src/info.dart'; |
12 import 'package:web_ui/src/paths.dart'; | 12 import 'package:web_ui/src/paths.dart'; |
13 import 'package:web_ui/src/utils.dart' as utils; | 13 import 'package:web_ui/src/utils.dart' as utils; |
14 import 'testing.dart'; | 14 import 'testing.dart'; |
15 | 15 |
16 | 16 |
17 main() { | 17 main() { |
18 useCompactVMConfiguration(); | 18 useCompactVMConfiguration(); |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 var file = new FileInfo(new UrlInfo( | 318 var file = new FileInfo(new UrlInfo( |
319 url == null ? filePath : url, filePath, null)); | 319 url == null ? filePath : url, filePath, null)); |
320 file.outputFilename = pathMapper.mangle( | 320 file.outputFilename = pathMapper.mangle( |
321 utils.path.basename(filePath), '.dart', false); | 321 utils.path.basename(filePath), '.dart', false); |
322 return file; | 322 return file; |
323 } | 323 } |
324 | 324 |
325 _checkPath(String filePath, String expected) { | 325 _checkPath(String filePath, String expected) { |
326 expect(utils.path.normalize(filePath), expected); | 326 expect(utils.path.normalize(filePath), expected); |
327 } | 327 } |
OLD | NEW |