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

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

Issue 18324015: "Reverting 24760" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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/pubspec.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/docgen/test/single_library_test.dart
diff --git a/pkg/docgen/test/single_library_test.dart b/pkg/docgen/test/single_library_test.dart
deleted file mode 100644
index 68af44454158dc3d9d666ae6a3bfb9e5b5ece0c8..0000000000000000000000000000000000000000
--- a/pkg/docgen/test/single_library_test.dart
+++ /dev/null
@@ -1,82 +0,0 @@
-library single_library_test;
-
-import 'dart:io';
-
-import 'package:unittest/unittest.dart';
-
-import '../lib/docgen.dart';
-import '../../../sdk/lib/_internal/compiler/implementation/filenames.dart';
-
-main() {
- group('Generate docs for', () {
- test('one simple file.', () {
- var file = new File('test.dart');
- file.writeAsStringSync('''
- library test;
- /**
- * Doc comment for class A.
- *
- * Multiline Test
- */
- /*
- * Normal comment for class A.
- */
- class A {
-
- /**
- * Markdown _test_ for **class** [A]
- */
- int _someNumber;
-
- A() {
- _someNumber = 12;
- }
-
- void doThis(int a) {
- print(a);
- }
- }
-
- main() {
- A a = new A();
- a.doThis(5);
- }
- ''');
-
- getMirrorSystem(['test.dart'],'', parseSdk: false)
- .then(expectAsync1((mirrorSystem) {
- var testLibraryUri = currentDirectory.resolve('test.dart');
- var library = generateLibrary(mirrorSystem.libraries[testLibraryUri],
- includePrivate: true);
- expect(library is Library, isTrue);
-
- var classes = library.classes.values;
- expect(classes.every((e) => e is Class), isTrue);
-
- var classMethods = [];
- classes.forEach((e) => classMethods.addAll(e.methods.values));
- expect(classMethods.every((e) => e is Method), isTrue);
-
- var methodParameters = [];
- classMethods.forEach((e) {
- methodParameters.addAll(e.parameters.values);
- });
- expect(methodParameters.every((e) => e is Parameter), isTrue);
-
- var functions = library.functions.values;
- expect(functions.every((e) => e is Method), isTrue);
-
- var functionParameters = [];
- functions.forEach((e) {
- functionParameters.addAll(e.parameters.values);
- });
- expect(functionParameters.every((e) => e is Parameter), isTrue);
-
- var variables = library.variables.values;
- expect(variables.every((e) => e is Variable), isTrue);
-
- file.deleteSync();
- }));
- });
- });
-}
« no previous file with comments | « pkg/docgen/pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698