| OLD | NEW |
| 1 library single_library_test; | 1 library single_library_test; |
| 2 | 2 |
| 3 import 'dart:io'; | 3 import 'dart:io'; |
| 4 | 4 |
| 5 import 'package:path/path.dart' as path; | 5 import 'package:path/path.dart' as path; |
| 6 import 'package:unittest/unittest.dart'; | 6 import 'package:unittest/unittest.dart'; |
| 7 | 7 |
| 8 import '../lib/docgen.dart'; | 8 import '../lib/docgen.dart'; |
| 9 | 9 |
| 10 main() { | 10 main() { |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 | 106 |
| 107 // Testing trying to refer to doThis function | 107 // Testing trying to refer to doThis function |
| 108 var methodDocComment = fixReference('doThis', libraryMirror, | 108 var methodDocComment = fixReference('doThis', libraryMirror, |
| 109 classMirror, methodMirror).children.first.text; | 109 classMirror, methodMirror).children.first.text; |
| 110 expect(methodDocComment == 'test.A.doThis', isTrue); | 110 expect(methodDocComment == 'test.A.doThis', isTrue); |
| 111 | 111 |
| 112 // Testing something with no reference | 112 // Testing something with no reference |
| 113 var libraryDocComment = fixReference('foobar', libraryMirror, | 113 var libraryDocComment = fixReference('foobar', libraryMirror, |
| 114 classMirror, methodMirror).children.first.text; | 114 classMirror, methodMirror).children.first.text; |
| 115 expect(libraryDocComment == 'foobar', isTrue); | 115 expect(libraryDocComment == 'foobar', isTrue); |
| 116 | 116 })).whenComplete(() => temporaryDir.deleteSync(recursive: true)); |
| 117 temporaryDir.deleteSync(recursive: true); | |
| 118 })); | |
| 119 }); | 117 }); |
| 120 }); | 118 }); |
| 121 } | 119 } |
| OLD | NEW |