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

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

Issue 22286009: Added back abstract class change and fixed test (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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 .then(expectAsync1((mirrorSystem) { 49 .then(expectAsync1((mirrorSystem) {
50 var testLibraryUri = new Uri(scheme: 'file', 50 var testLibraryUri = new Uri(scheme: 'file',
51 path: path.absolute(fileName)); 51 path: path.absolute(fileName));
52 var library = generateLibrary(mirrorSystem.libraries[testLibraryUri]); 52 var library = generateLibrary(mirrorSystem.libraries[testLibraryUri]);
53 expect(library is Library, isTrue); 53 expect(library is Library, isTrue);
54 54
55 var classTypes = library.classes; 55 var classTypes = library.classes;
56 expect(classTypes is ClassGroup, isTrue); 56 expect(classTypes is ClassGroup, isTrue);
57 57
58 var classes = []; 58 var classes = [];
59 classes.addAll(classTypes.abstractClasses.values); 59 classes.addAll(classTypes.classes.values);
60 classes.addAll(classTypes.regularClasses.values);
61 classes.addAll(classTypes.errors.values); 60 classes.addAll(classTypes.errors.values);
62 expect(classes.every((e) => e is Class), isTrue); 61 expect(classes.every((e) => e is Class), isTrue);
63 62
64 expect(classTypes.typedefs.values.every((e) => e is Typedef), isTrue); 63 expect(classTypes.typedefs.values.every((e) => e is Typedef), isTrue);
65 64
66 var classMethodTypes = []; 65 var classMethodTypes = [];
67 classes.forEach((e) { 66 classes.forEach((e) {
68 classMethodTypes.add(e.methods); 67 classMethodTypes.add(e.methods);
69 classMethodTypes.add(e.inheritedMethods); 68 classMethodTypes.add(e.inheritedMethods);
70 }); 69 });
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 expect(methodDocComment == 'test.A.doThis', isTrue); 125 expect(methodDocComment == 'test.A.doThis', isTrue);
127 126
128 // Testing something with no reference 127 // Testing something with no reference
129 var libraryDocComment = fixReference('foobar', libraryMirror, 128 var libraryDocComment = fixReference('foobar', libraryMirror,
130 classMirror, methodMirror).children.first.text; 129 classMirror, methodMirror).children.first.text;
131 expect(libraryDocComment == 'foobar', isTrue); 130 expect(libraryDocComment == 'foobar', isTrue);
132 })).whenComplete(() => temporaryDir.deleteSync(recursive: true)); 131 })).whenComplete(() => temporaryDir.deleteSync(recursive: true));
133 }); 132 });
134 }); 133 });
135 } 134 }
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