Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: pkg/docgen/test/single_library_test.dart

Issue 20777002: Moved deleting directory to whenComplete (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/docgen/lib/docgen.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/docgen/lib/docgen.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698