OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 import 'dart:io'; | 5 import 'dart:io'; |
6 import 'dart:uri'; | |
7 | 6 |
8 import 'package:pathos/path.dart' as pathos; | 7 import 'package:pathos/path.dart' as pathos; |
9 import 'package:unittest/unittest.dart'; | 8 import 'package:unittest/unittest.dart'; |
10 | 9 |
11 import '../lib/src/export_map.dart'; | 10 import '../lib/src/export_map.dart'; |
12 import '../lib/src/dartdoc/utils.dart'; | 11 import '../lib/src/dartdoc/utils.dart'; |
13 | 12 |
14 String tempDir; | 13 String tempDir; |
15 | 14 |
16 main() { | 15 main() { |
(...skipping 374 matching lines...) Loading... |
391 String libPath(String name) => pathos.normalize(pathos.join(tempDir, name)); | 390 String libPath(String name) => pathos.normalize(pathos.join(tempDir, name)); |
392 | 391 |
393 void createTempDir() { | 392 void createTempDir() { |
394 tempDir = new Directory('').createTempSync().path; | 393 tempDir = new Directory('').createTempSync().path; |
395 new Directory(pathos.join(tempDir, 'packages')).createSync(); | 394 new Directory(pathos.join(tempDir, 'packages')).createSync(); |
396 } | 395 } |
397 | 396 |
398 void deleteTempDir() { | 397 void deleteTempDir() { |
399 new Directory(tempDir).deleteSync(recursive: true); | 398 new Directory(tempDir).deleteSync(recursive: true); |
400 } | 399 } |
OLD | NEW |