| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 /// Unit tests for doc. | 5 /// Unit tests for doc. |
| 6 library dartdocTests; | 6 library dartdocTests; |
| 7 | 7 |
| 8 import 'dart:async'; | 8 import 'dart:async'; |
| 9 import 'dart:io'; | 9 import 'dart:io'; |
| 10 | 10 |
| 11 import 'package:pathos/path.dart' as path; | 11 import 'package:path/path.dart' as path; |
| 12 import 'package:unittest/unittest.dart'; | 12 import 'package:unittest/unittest.dart'; |
| 13 | 13 |
| 14 // TODO(rnystrom): Use "package:" URL (#4968). | 14 // TODO(rnystrom): Use "package:" URL (#4968). |
| 15 import '../lib/dartdoc.dart' as dd; | 15 import '../lib/dartdoc.dart' as dd; |
| 16 import '../lib/markdown.dart'; | 16 import '../lib/markdown.dart'; |
| 17 import 'markdown_test.dart'; | 17 import 'markdown_test.dart'; |
| 18 | 18 |
| 19 main() { | 19 main() { |
| 20 group('isAbsolute', () { | 20 group('isAbsolute', () { |
| 21 final doc = new dd.Dartdoc(); | 21 final doc = new dd.Dartdoc(); |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 } | 273 } |
| 274 } | 274 } |
| 275 | 275 |
| 276 | 276 |
| 277 validateDartdocMarkdown(String description, String markdown, | 277 validateDartdocMarkdown(String description, String markdown, |
| 278 String html) { | 278 String html) { |
| 279 var dartdoc = new dd.Dartdoc(); | 279 var dartdoc = new dd.Dartdoc(); |
| 280 validate(description, markdown, html, linkResolver: dartdoc.dartdocResolver, | 280 validate(description, markdown, html, linkResolver: dartdoc.dartdocResolver, |
| 281 inlineSyntaxes: dartdoc.dartdocSyntaxes); | 281 inlineSyntaxes: dartdoc.dartdocSyntaxes); |
| 282 } | 282 } |
| OLD | NEW |