Project

General

Profile

Feature #498 » test_cgi_helper.diff

xibbar (Takeyuki FUJIOKA), 08/26/2008 12:57 PM

View differences:

test/cgi/test_cgi_tag_helper.rb (working copy)
237 237
    assert_equal('<CAPTION ALIGN="bar"></CAPTION>',cgi.caption('bar'))
238 238
    assert_equal('<CAPTION>foo</CAPTION>',cgi.caption{'foo'})
239 239
    assert_equal('<CAPTION ALIGN="bar">foo</CAPTION>',cgi.caption('bar'){'foo'})
240
    assert_equal('<IMG SRC="" ALT="">',cgi.img)
241
    assert_equal('<IMG SRC="bar" ALT="">',cgi.img('bar'))
242
    assert_equal('<IMG SRC="" ALT="">',cgi.img{'foo'})
243
    assert_equal('<IMG SRC="bar" ALT="">',cgi.img('bar'){'foo'})
244
    assert_equal('<BASE HREF="">',cgi.base)
245
    assert_equal('<BASE HREF="bar">',cgi.base('bar'))
246
    assert_equal('<BASE HREF="">',cgi.base{'foo'})
247
    assert_equal('<BASE HREF="bar">',cgi.base('bar'){'foo'})
248
    assert_equal('<BASEFONT>',cgi.basefont)
249
    assert_equal('<BASEFONT>',cgi.basefont('bar'))
250
    assert_equal('<BASEFONT>',cgi.basefont{'foo'})
251
    assert_equal('<BASEFONT>',cgi.basefont('bar'){'foo'})
252
    assert_equal('<BR>',cgi.br)
253
    assert_equal('<BR>',cgi.br('bar'))
254
    assert_equal('<BR>',cgi.br{'foo'})
255
    assert_equal('<BR>',cgi.br('bar'){'foo'})
256
    assert_equal('<AREA>',cgi.area)
257
    assert_equal('<AREA>',cgi.area('bar'))
258
    assert_equal('<AREA>',cgi.area{'foo'})
259
    assert_equal('<AREA>',cgi.area('bar'){'foo'})
260
    assert_equal('<LINK>',cgi.link)
261
    assert_equal('<LINK>',cgi.link('bar'))
262
    assert_equal('<LINK>',cgi.link{'foo'})
263
    assert_equal('<LINK>',cgi.link('bar'){'foo'})
264
    assert_equal('<PARAM>',cgi.param)
265
    assert_equal('<PARAM>',cgi.param('bar'))
266
    assert_equal('<PARAM>',cgi.param{'foo'})
267
    assert_equal('<PARAM>',cgi.param('bar'){'foo'})
268
    assert_equal('<HR>',cgi.hr)
269
    assert_equal('<HR>',cgi.hr('bar'))
270
    assert_equal('<HR>',cgi.hr{'foo'})
271
    assert_equal('<HR>',cgi.hr('bar'){'foo'})
272
    assert_equal('<INPUT>',cgi.input)
273
    assert_equal('<INPUT>',cgi.input('bar'))
274
    assert_equal('<INPUT>',cgi.input{'foo'})
275
    assert_equal('<INPUT>',cgi.input('bar'){'foo'})
276
    assert_equal('<ISINDEX>',cgi.isindex)
277
    assert_equal('<ISINDEX>',cgi.isindex('bar'))
278
    assert_equal('<ISINDEX>',cgi.isindex{'foo'})
279
    assert_equal('<ISINDEX>',cgi.isindex('bar'){'foo'})
280
    assert_equal('<META>',cgi.meta)
281
    assert_equal('<META>',cgi.meta('bar'))
282
    assert_equal('<META>',cgi.meta{'foo'})
283
    assert_equal('<META>',cgi.meta('bar'){'foo'})
284
    assert_equal('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><HTML>',cgi.html)
285
    assert_equal('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><HTML>foo</HTML>',cgi.html{'foo'})
286
    assert_equal('<HEAD>',cgi.head)
287
    assert_equal('<HEAD>foo</HEAD>',cgi.head{'foo'})
288
    assert_equal('<BODY>',cgi.body)
289
    assert_equal('<BODY>foo</BODY>',cgi.body{'foo'})
290
    assert_equal('<P>',cgi.p)
291
    assert_equal('<P>foo</P>',cgi.p{'foo'})
292
    assert_equal('<PLAINTEXT>',cgi.plaintext)
293
    assert_equal('<PLAINTEXT>foo</PLAINTEXT>',cgi.plaintext{'foo'})
294
    assert_equal('<DT>',cgi.dt)
295
    assert_equal('<DT>foo</DT>',cgi.dt{'foo'})
296
    assert_equal('<DD>',cgi.dd)
297
    assert_equal('<DD>foo</DD>',cgi.dd{'foo'})
298
    assert_equal('<LI>',cgi.li)
299
    assert_equal('<LI>foo</LI>',cgi.li{'foo'})
300
    assert_equal('<OPTION>',cgi.option)
301
    assert_equal('<OPTION>foo</OPTION>',cgi.option{'foo'})
302
    assert_equal('<TR>',cgi.tr)
303
    assert_equal('<TR>foo</TR>',cgi.tr{'foo'})
304
    assert_equal('<TH>',cgi.th)
305
    assert_equal('<TH>foo</TH>',cgi.th{'foo'})
306
    assert_equal('<TD>',cgi.td)
307
    assert_equal('<TD>foo</TD>',cgi.td{'foo'})
240 308
  end
241 309
  
242 310
=begin