• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/ruby-104/ruby/test/rdoc/

Lines Matching refs:to

10     @to = RDoc::Markup::ToHtmlSnippet.new @options, 100, 100
11 @ellipsis = @to.to_html '...'
15 assert_empty @to.res.join
19 assert_equal "\n<blockquote><p>quote\n</blockquote>\n", @to.res.join
21 assert_equal 5, @to.characters
25 assert_equal "<p>hello\n", @to.res.join
26 assert_equal 5, @to.characters
30 assert_equal "<p>Hello\n", @to.res.join
31 assert_equal 5, @to.characters
35 assert_equal "<p>Hello\n", @to.res.join
36 assert_equal 5, @to.characters
40 assert_equal "<p>Hello\n", @to.res.join
41 assert_equal 5, @to.characters
45 assert_equal "<p>Hello\n", @to.res.join
46 assert_equal 5, @to.characters
50 assert_equal "<p>Hello\n", @to.res.join
51 assert_equal 5, @to.characters
56 @to.res.join
57 assert_equal 5, @to.characters
61 assert_equal "<p>Hello\n", @to.res.join
62 assert_equal 5, @to.characters
66 assert_equal [], @to.list
67 assert_equal [], @to.in_list_entry
69 assert_equal "\n", @to.res.join
70 assert_equal 0, @to.characters
74 assert_equal [], @to.list
75 assert_equal [], @to.in_list_entry
77 assert_equal "\n", @to.res.join
78 assert_equal 0, @to.characters
82 assert_equal [], @to.list
83 assert_equal [], @to.in_list_entry
85 assert_equal "\n", @to.res.join
86 assert_equal 0, @to.characters
90 assert_equal [], @to.list
91 assert_equal [], @to.in_list_entry
93 assert_equal "\n", @to.res.join
94 assert_equal 0, @to.characters
98 assert_equal [], @to.list
99 assert_equal [], @to.in_list_entry
101 assert_equal "\n", @to.res.join
102 assert_equal 0, @to.characters
106 assert_equal [], @to.list
107 assert_equal [], @to.in_list_entry
109 assert_equal "\n", @to.res.join
110 assert_equal 0, @to.characters
114 assert_equal [''], @to.in_list_entry
115 assert_equal 0, @to.characters
119 assert_equal [''], @to.in_list_entry
120 assert_equal 4, @to.characters
124 assert_equal [''], @to.in_list_entry
125 assert_equal 0, @to.characters
129 assert_equal [''], @to.in_list_entry
130 assert_equal 4, @to.characters
134 assert_equal [''], @to.in_list_entry
135 assert_equal 0, @to.characters
139 assert_equal [''], @to.in_list_entry
140 assert_equal 0, @to.characters
144 assert_equal "<p>", @to.res.join
145 assert_equal 0, @to.characters
149 assert_equal "<p>cat &mdash; ", @to.res.join
150 assert_equal 4, @to.characters
154 assert_equal "<p>", @to.res.join
155 assert_equal 0, @to.characters
160 @to.res.join
161 assert_equal 4, @to.characters
170 assert_equal expected, @to.res.join
171 assert_equal 29, @to.characters
181 assert_equal expected, @to.res.join
182 assert_equal 37, @to.characters
191 assert_equal expected, @to.res.join
192 assert_equal 18, @to.characters
196 assert_equal "<p>", @to.res.join
197 assert_equal 0, @to.characters
201 assert_equal "<p>", @to.res.join
202 assert_equal 0, @to.characters
206 assert_equal [:BULLET], @to.list
207 assert_equal [''], @to.in_list_entry
209 assert_equal '', @to.res.join
210 assert_equal 0, @to.characters
214 assert_equal [:LABEL], @to.list
215 assert_equal [''], @to.in_list_entry
217 assert_equal '', @to.res.join
218 assert_equal 0, @to.characters
222 assert_equal [:LALPHA], @to.list
223 assert_equal [''], @to.in_list_entry
225 assert_equal '', @to.res.join
226 assert_equal 0, @to.characters
230 assert_equal [:NOTE], @to.list
231 assert_equal [''], @to.in_list_entry
233 assert_equal '', @to.res.join
234 assert_equal 0, @to.characters
238 assert_equal [:NUMBER], @to.list
239 assert_equal [''], @to.in_list_entry
241 assert_equal '', @to.res.join
242 assert_equal 0, @to.characters
246 assert_equal [:UALPHA], @to.list
247 assert_equal [''], @to.in_list_entry
249 assert_equal '', @to.res.join
250 assert_equal 0, @to.characters
254 assert_equal "<p>hi\n", @to.res.join
256 assert_equal 2, @to.characters
260 assert_equal "<p>reg <strong>bold words</strong> reg\n", @to.res.join
262 assert_equal 18, @to.characters
266 assert_equal "<p>one<br>two\n", @to.res.join
268 assert_equal 6, @to.characters
272 assert_equal "<p>hello<br>\nworld\n", @to.res.join
274 assert_equal 11, @to.characters
278 assert_equal "<p>reg <em>italic words</em> reg\n", @to.res.join
280 assert_equal 20, @to.characters
284 assert_equal "<p>reg <code>teletype</code> reg\n", @to.res.join
286 assert_equal 16, @to.characters
290 assert_equal "<p>reg <strong>bold</strong> reg\n", @to.res.join
292 assert_equal 12, @to.characters
296 assert_equal "<p>reg <em>italic</em> reg\n", @to.res.join
298 assert_equal 14, @to.characters
302 assert_equal '', @to.res.join
303 assert_equal 0, @to.characters
307 assert_empty @to.res
308 assert_equal 0, @to.characters
312 assert_equal "\n<pre>hi\n world</pre>\n", @to.res.join
313 assert_equal 10, @to.characters
317 assert_equal 'hi', @to.res.join
321 assert_equal [], @to.res
322 assert_equal [], @to.in_list_entry
323 assert_equal [], @to.list
324 assert_equal 0, @to.characters
336 assert_equal expected, @to.res.join
337 assert_equal 8, @to.characters
358 assert_equal expected, @to.end_accepting
359 assert_equal 81, @to.characters
363 @to.start_accepting
365 @to.accept_heading @RM::Heading.new(7, 'Hello')
367 assert_equal "<p>Hello\n", @to.res.join
368 assert_equal 5, @to.characters
372 @to.code_object = RDoc::NormalClass.new 'Foo'
373 @to.start_accepting
375 @to.accept_heading @RM::Heading.new(1, 'Hello')
378 @to.res.join
379 assert_equal 5, @to.characters
383 @to.code_object = RDoc::AnyMethod.new nil, 'foo'
384 @to.start_accepting
386 @to.accept_heading @RM::Heading.new(1, 'Hello')
389 @to.res.join
390 assert_equal 5, @to.characters
401 @to.start_accepting
402 @to.accept_verbatim verb
411 assert_equal expected, @to.res.join
412 assert_equal 11, @to.characters
423 @to.start_accepting
424 @to.accept_verbatim verb
434 assert_equal expected, @to.res.join
435 assert_equal 16, @to.characters
439 @to = RDoc::Markup::ToHtmlSnippet.new @options, 0, 3
441 @to.add_paragraph
442 @to.add_paragraph
443 @to.add_paragraph
446 assert_equal 3, @to.paragraphs
466 actual = @to.convert rdoc
469 assert_equal 111, @to.characters, 'snippet character length'
485 actual = @to.convert rdoc
488 assert_equal 159, @to.characters, 'snippet character length'
492 @to = RDoc::Markup::ToHtmlSnippet.new @options, 100, 3
516 actual = @to.convert rdoc
519 assert_equal 67, @to.characters
523 @to = RDoc::Markup::ToHtmlSnippet.new @options, 4
528 actual = @to.convert rdoc
530 assert_equal 4, @to.characters
550 actual = @to.convert rdoc
553 assert_equal 113, @to.characters
571 actual = @to.convert rdoc
574 assert_equal 101, @to.characters
595 actual = @to.convert rdoc
598 assert_equal 105, @to.characters
602 @to = RDoc::Markup::ToHtmlSnippet.new @options, 4
609 actual = @to.convert rdoc
611 assert_equal 4, @to.characters
616 assert_equal '&lt;&gt;', @to.convert_string('<>')
620 result = @to.convert 'rdoc-label:label-One'
623 assert_equal 3, @to.characters
627 result = @to.convert 'rdoc-label:foottext-1'
630 assert_equal 2, @to.characters
634 result = @to.convert 'rdoc-label:footmark-1'
637 assert_equal 2, @to.characters
641 result = @to.convert 'rdoc-ref:C'
644 assert_equal 1, @to.characters
648 result = @to.convert '{foo}[rdoc-label:foottext-1]'
651 assert_equal 3, @to.characters
657 link = @to.handle_special_HYPERLINK special
674 assert_equal expected, @m.convert(str, @to)
675 assert_equal 17, @to.characters
681 @to.on_tags [], on
683 assert_equal 2, @to.mask
690 @to.on_tags [], on
691 @to.off_tags [], off
693 assert_equal 0, @to.mask
698 assert_equal 2, @to.characters
704 @to.start_accepting
705 @to.accept_paragraph paragraph
706 @to.end_accepting