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

Unified Diff: sdk/lib/_internal/dartdoc/test/dartdoc_test.dart

Issue 14194003: Revert "Revert "Attempt to re-commit Dartdoc exports."" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Maybe... Created 7 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 | « sdk/lib/_internal/dartdoc/pubspec.yaml ('k') | sdk/lib/_internal/dartdoc/test/export_map_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/dartdoc/test/dartdoc_test.dart
diff --git a/sdk/lib/_internal/dartdoc/test/dartdoc_test.dart b/sdk/lib/_internal/dartdoc/test/dartdoc_test.dart
index c32c47f446a2f3247daff867100d36dbb3c3d050..60eb3ac1b00555691cb114ad74057f037cda687a 100644
--- a/sdk/lib/_internal/dartdoc/test/dartdoc_test.dart
+++ b/sdk/lib/_internal/dartdoc/test/dartdoc_test.dart
@@ -17,42 +17,6 @@ import '../lib/markdown.dart';
import 'markdown_test.dart';
main() {
- group('countOccurrences', () {
- test('empty text returns 0', () {
- expect(dd.countOccurrences('', 'needle'), equals(0));
- });
-
- test('one occurrence', () {
- expect(dd.countOccurrences('bananarama', 'nara'), equals(1));
- });
-
- test('multiple occurrences', () {
- expect(dd.countOccurrences('bananarama', 'a'), equals(5));
- });
-
- test('overlapping matches do not count', () {
- expect(dd.countOccurrences('bananarama', 'ana'), equals(1));
- });
- });
-
- group('repeat', () {
- test('zero times returns an empty string', () {
- expect(dd.repeat('ba', 0), isEmpty);
- });
-
- test('one time returns the string', () {
- expect(dd.repeat('ba', 1), equals('ba'));
- });
-
- test('multiple times', () {
- expect(dd.repeat('ba', 3), equals('bababa'));
- });
-
- test('multiple times with a separator', () {
- expect(dd.repeat('ba', 3, separator: ' '), equals('ba ba ba'));
- });
- });
-
group('isAbsolute', () {
final doc = new dd.Dartdoc();
« no previous file with comments | « sdk/lib/_internal/dartdoc/pubspec.yaml ('k') | sdk/lib/_internal/dartdoc/test/export_map_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698