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

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

Issue 571713002: pkg/docgen: include all package libraries under lib/, except those under lib/src (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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/pubspec.yaml ('k') | pkg/docgen/test/multi_library_code/lib/src/src_lib.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 library docgen.generate_json_test; 5 library docgen.generate_json_test;
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 8
9 import 'package:path/path.dart' as p; 9 import 'package:path/path.dart' as p;
10 import 'package:scheduled_test/descriptor.dart' as d; 10 import 'package:scheduled_test/descriptor.dart' as d;
(...skipping 14 matching lines...) Expand all
25 expect(FileSystemEntity.isDirectorySync(codeDir), isTrue); 25 expect(FileSystemEntity.isDirectorySync(codeDir), isTrue);
26 return dg.docgen([codeDir], out: p.join(d.defaultRoot, 'docs')); 26 return dg.docgen([codeDir], out: p.join(d.defaultRoot, 'docs'));
27 }); 27 });
28 28
29 d.dir('docs', [ 29 d.dir('docs', [
30 d.matcherFile('index.json', isJsonMap), 30 d.matcherFile('index.json', isJsonMap),
31 d.matcherFile('index.txt', hasSortedLines), 31 d.matcherFile('index.txt', hasSortedLines),
32 d.matcherFile('library_list.json', isJsonMap), 32 d.matcherFile('library_list.json', isJsonMap),
33 d.matcherFile('library_list.json', 33 d.matcherFile('library_list.json',
34 startsWith(_LIBRARY_LIST_UNINDENT_START)), 34 startsWith(_LIBRARY_LIST_UNINDENT_START)),
35 d.matcherFile('sub_lib.json', isJsonMap),
36 d.matcherFile('sub_lib.SubLibClass.json', isJsonMap),
37 d.matcherFile('sub_lib.SubLibPart.json', isJsonMap),
35 d.matcherFile('test_lib-bar.C.json', isJsonMap), 38 d.matcherFile('test_lib-bar.C.json', isJsonMap),
36 d.matcherFile('test_lib-bar.json', isJsonMap), 39 d.matcherFile('test_lib-bar.json', isJsonMap),
37 d.matcherFile('test_lib-foo.B.json', isJsonMap), 40 d.matcherFile('test_lib-foo.B.json', isJsonMap),
38 d.matcherFile('test_lib-foo.json', isJsonMap), 41 d.matcherFile('test_lib-foo.json', isJsonMap),
39 d.matcherFile('test_lib.A.json', isJsonMap), 42 d.matcherFile('test_lib.A.json', isJsonMap),
40 d.matcherFile('test_lib.B.json', isJsonMap), 43 d.matcherFile('test_lib.B.json', isJsonMap),
41 d.matcherFile('test_lib.C.json', isJsonMap), 44 d.matcherFile('test_lib.C.json', isJsonMap),
42 d.matcherFile('test_lib.json', isJsonMap), 45 d.matcherFile('test_lib.json', isJsonMap),
43 ]).validate(); 46 ]).validate();
44 }); 47 });
45 } 48 }
46 49
47 const _LIBRARY_LIST_UNINDENT_START = '{"libraries":[{"packageName":""'; 50 const _LIBRARY_LIST_UNINDENT_START = '{"libraries":[{"packageName":""';
OLDNEW
« no previous file with comments | « pkg/docgen/pubspec.yaml ('k') | pkg/docgen/test/multi_library_code/lib/src/src_lib.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698