~ubuntu-branches/ubuntu/quantal/ruby1.9.1/quantal

« back to all changes in this revision

Viewing changes to test/rdoc/test_rdoc_markup_to_tt_only.rb

  • Committer: Bazaar Package Importer
  • Author(s): Lucas Nussbaum
  • Date: 2011-09-24 19:16:17 UTC
  • mfrom: (1.1.8 upstream) (13.1.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20110924191617-o1qz4rcmqjot8zuy
Tags: 1.9.3~rc1-1
* New upstream release: 1.9.3 RC1.
  + Includes load.c fixes. Closes: #639959.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
require 'rubygems'
 
2
require 'rdoc/markup/formatter_test_case'
 
3
require 'rdoc/markup/to_tt_only'
 
4
require 'minitest/autorun'
 
5
 
 
6
class TestRDocMarkupToTtOnly < RDoc::Markup::FormatterTestCase
 
7
 
 
8
  add_visitor_tests
 
9
 
 
10
  def setup
 
11
    super
 
12
 
 
13
    @to = RDoc::Markup::ToTtOnly.new
 
14
  end
 
15
 
 
16
  def accept_blank_line
 
17
    assert_empty @to.end_accepting
 
18
  end
 
19
 
 
20
  def accept_document
 
21
    assert_equal [], @to.res
 
22
  end
 
23
 
 
24
  def accept_heading
 
25
    assert_empty @to.end_accepting
 
26
  end
 
27
 
 
28
  def accept_list_end_bullet
 
29
    assert_empty @to.res
 
30
  end
 
31
 
 
32
  def accept_list_end_label
 
33
    assert_empty @to.res
 
34
  end
 
35
 
 
36
  def accept_list_end_lalpha
 
37
    assert_empty @to.res
 
38
  end
 
39
 
 
40
  def accept_list_end_note
 
41
    assert_empty @to.res
 
42
  end
 
43
 
 
44
  def accept_list_end_number
 
45
    assert_empty @to.res
 
46
  end
 
47
 
 
48
  def accept_list_end_ualpha
 
49
    assert_empty @to.res
 
50
  end
 
51
 
 
52
  def accept_list_item_end_bullet
 
53
    assert_empty @to.res
 
54
  end
 
55
 
 
56
  def accept_list_item_end_label
 
57
    assert_empty @to.res
 
58
  end
 
59
 
 
60
  def accept_list_item_end_lalpha
 
61
    assert_empty @to.res
 
62
  end
 
63
 
 
64
  def accept_list_item_end_note
 
65
    assert_empty @to.res
 
66
  end
 
67
 
 
68
  def accept_list_item_end_number
 
69
    assert_empty @to.res
 
70
  end
 
71
 
 
72
  def accept_list_item_end_ualpha
 
73
    assert_empty @to.res
 
74
  end
 
75
 
 
76
  def accept_list_item_start_bullet
 
77
    assert_empty @to.res
 
78
  end
 
79
 
 
80
  def accept_list_item_start_label
 
81
    assert_empty @to.res
 
82
  end
 
83
 
 
84
  def accept_list_item_start_lalpha
 
85
    assert_empty @to.res
 
86
  end
 
87
 
 
88
  def accept_list_item_start_note
 
89
    assert_empty @to.res
 
90
  end
 
91
 
 
92
  def accept_list_item_start_number
 
93
    assert_empty @to.res
 
94
  end
 
95
 
 
96
  def accept_list_item_start_ualpha
 
97
    assert_empty @to.res
 
98
  end
 
99
 
 
100
  def accept_list_start_bullet
 
101
    assert_empty @to.res
 
102
  end
 
103
 
 
104
  def accept_list_start_label
 
105
    assert_empty @to.res
 
106
  end
 
107
 
 
108
  def accept_list_start_lalpha
 
109
    assert_empty @to.res
 
110
  end
 
111
 
 
112
  def accept_list_start_note
 
113
    assert_empty @to.res
 
114
  end
 
115
 
 
116
  def accept_list_start_number
 
117
    assert_empty @to.res
 
118
  end
 
119
 
 
120
  def accept_list_start_ualpha
 
121
    assert_empty @to.res
 
122
  end
 
123
 
 
124
  def accept_paragraph
 
125
    assert_empty @to.end_accepting
 
126
  end
 
127
 
 
128
  def accept_raw
 
129
    assert_empty @to.end_accepting
 
130
  end
 
131
 
 
132
  def accept_rule
 
133
    assert_empty @to.end_accepting
 
134
  end
 
135
 
 
136
  def accept_verbatim
 
137
    assert_empty @to.end_accepting
 
138
  end
 
139
 
 
140
  def end_accepting
 
141
    assert_equal %w[hi], @to.end_accepting
 
142
  end
 
143
 
 
144
  def start_accepting
 
145
    assert_empty @to.end_accepting
 
146
  end
 
147
 
 
148
  def accept_heading_1
 
149
    assert_empty @to.end_accepting
 
150
  end
 
151
 
 
152
  def accept_heading_2
 
153
    assert_empty @to.end_accepting
 
154
  end
 
155
 
 
156
  def accept_heading_3
 
157
    assert_empty @to.end_accepting
 
158
  end
 
159
 
 
160
  def accept_heading_4
 
161
    assert_empty @to.end_accepting
 
162
  end
 
163
 
 
164
  def accept_heading_indent
 
165
    assert_empty @to.end_accepting
 
166
  end
 
167
 
 
168
  def accept_heading_b
 
169
    assert_empty @to.end_accepting
 
170
  end
 
171
 
 
172
  def accept_heading_suppressed_crossref
 
173
    assert_empty @to.end_accepting
 
174
  end
 
175
 
 
176
  def accept_list_item_start_note_2
 
177
    assert_equal [nil, 'teletype', nil], @to.res
 
178
  end
 
179
 
 
180
  def accept_paragraph_b
 
181
    assert_empty @to.end_accepting
 
182
  end
 
183
 
 
184
  def accept_paragraph_i
 
185
    assert_empty @to.end_accepting
 
186
  end
 
187
 
 
188
  def accept_paragraph_indent
 
189
    assert_empty @to.end_accepting
 
190
  end
 
191
 
 
192
  def accept_paragraph_plus
 
193
    assert_equal %w[teletype], @to.end_accepting
 
194
  end
 
195
 
 
196
  def accept_paragraph_star
 
197
    assert_empty @to.end_accepting
 
198
  end
 
199
 
 
200
  def accept_paragraph_underscore
 
201
    assert_empty @to.end_accepting
 
202
  end
 
203
 
 
204
  def accept_paragraph_wrap
 
205
    assert_empty @to.end_accepting
 
206
  end
 
207
 
 
208
  def accept_rule_indent
 
209
    assert_empty @to.end_accepting
 
210
  end
 
211
 
 
212
  def accept_verbatim_indent
 
213
    assert_empty @to.end_accepting
 
214
  end
 
215
 
 
216
  def accept_verbatim_big_indent
 
217
    assert_empty @to.end_accepting
 
218
  end
 
219
 
 
220
  def list_nested
 
221
    assert_empty @to.end_accepting
 
222
  end
 
223
 
 
224
  def list_verbatim
 
225
    assert_empty @to.end_accepting
 
226
  end
 
227
 
 
228
end
 
229