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

Unified Diff: pkg/docgen/test/typedef_test.dart

Issue 245673002: pkg/docgen: a bunch of cleanup (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/docgen/test/multi_library_code/lib/root_lib.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/docgen/test/typedef_test.dart
diff --git a/pkg/docgen/test/typedef_test.dart b/pkg/docgen/test/typedef_test.dart
index f1592f0cf0e8882428ff984ba1ffb1c6c837d187..ca1dc6a8bc0b343a762189ff28b4d7cef7131e69 100644
--- a/pkg/docgen/test/typedef_test.dart
+++ b/pkg/docgen/test/typedef_test.dart
@@ -29,19 +29,19 @@ void main() {
schedule(() {
var path = p.join(d.defaultRoot, 'docs', 'root_lib.json');
- var dartCoreJson = new File(path).readAsStringSync();
+ var rootLibJson = new File(path).readAsStringSync();
- var testLibBar = JSON.decode(dartCoreJson) as Map<String, dynamic>;
+ var rootLib = JSON.decode(rootLibJson) as Map<String, dynamic>;
//
// Validate function doc references
//
- var testMethod = testLibBar['functions']['methods']['testMethod']
+ var testMethod = rootLib['functions']['methods']['testMethod']
as Map<String, dynamic>;
expect(testMethod['comment'], _TEST_METHOD_COMMENT);
- var classes = testLibBar['classes'] as Map<String, dynamic>;
+ var classes = rootLib['classes'] as Map<String, dynamic>;
expect(classes, hasLength(3));
@@ -55,6 +55,17 @@ void main() {
expect(comparator['comment'], _TEST_TYPEDEF_COMMENT);
});
+
+ schedule(() {
+ var path = p.join(d.defaultRoot, 'docs', 'root_lib.RootClass.json');
+ var rootClassJson = new File(path).readAsStringSync();
+
+ var rootClass = JSON.decode(rootClassJson) as Map<String, dynamic>;
+
+ var defaultCtor = rootClass['methods']['constructors'][''] as Map;
+
+ expect(defaultCtor['qualifiedName'], 'root_lib.RootClass.RootClass-');
+ });
});
}
« no previous file with comments | « pkg/docgen/test/multi_library_code/lib/root_lib.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698