| 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('dartdoc_tests'); | 6 #library('dartdoc_tests'); |
| 7 | 7 |
| 8 #import('../../../lib/dartdoc/dartdoc.dart', prefix: 'dd'); | 8 #import('../../../lib/dartdoc/dartdoc.dart', prefix: 'dd'); |
| 9 #import('../../../lib/dartdoc/markdown.dart', prefix: 'md'); | 9 #import('../../../lib/dartdoc/markdown.dart', prefix: 'md'); |
| 10 | 10 |
| 11 // TODO(rnystrom): Better path to unittest. | 11 // TODO(rnystrom): Better path to unittest. |
| 12 #import('../../../lib/unittest/unittest_vm.dart'); | 12 #import('../../../lib/unittest/unittest.dart'); |
| 13 #import('../../../frog/lang.dart'); | 13 #import('../../../frog/lang.dart'); |
| 14 #import('../../../frog/file_system_vm.dart'); | 14 #import('../../../frog/file_system_vm.dart'); |
| 15 | 15 |
| 16 main() { | 16 main() { |
| 17 var files = new VMFileSystem(); | 17 var files = new VMFileSystem(); |
| 18 parseOptions('../../frog', [], files); | 18 parseOptions('../../frog', [], files); |
| 19 initializeWorld(files); | 19 initializeWorld(files); |
| 20 | 20 |
| 21 group('countOccurrences', () { | 21 group('countOccurrences', () { |
| 22 test('empty text returns 0', () { | 22 test('empty text returns 0', () { |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 | 215 |
| 216 test('to a named constructor', () { | 216 test('to a named constructor', () { |
| 217 expect(render(doc.resolveNameReference('new Class.namedConstructor', | 217 expect(render(doc.resolveNameReference('new Class.namedConstructor', |
| 218 library: dummy))). | 218 library: dummy))). |
| 219 equals('<a class="crossref" ' + | 219 equals('<a class="crossref" ' + |
| 220 'href="../dummy/Class.html#new:Class.namedConstructor">new ' + | 220 'href="../dummy/Class.html#new:Class.namedConstructor">new ' + |
| 221 'Class.namedConstructor</a>'); | 221 'Class.namedConstructor</a>'); |
| 222 }); | 222 }); |
| 223 }); | 223 }); |
| 224 } | 224 } |
| OLD | NEW |