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