html-table 1.3.2 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,82 +0,0 @@
1
- ############################################################################
2
- # tc_tag_handler.rb
3
- #
4
- # Test suite for the TagHandler module. For these tests, we'll use an
5
- # instance of the Table class where the module has been mixed in.
6
- ############################################################################
7
- require 'test/unit'
8
- require 'html/table'
9
- include HTML
10
-
11
- class TC_TagHandler < Test::Unit::TestCase
12
- def setup
13
- @content = Table::Content.new('test')
14
- end
15
-
16
- def test_bold
17
- assert_respond_to(@content, :bold)
18
- assert_respond_to(@content, :bold=)
19
- assert_nothing_raised{ @content.bold }
20
- assert_nothing_raised{ @content.bold = true }
21
- end
22
-
23
- def test_big
24
- assert_respond_to(@content, :big)
25
- assert_respond_to(@content, :big=)
26
- assert_nothing_raised{ @content.big }
27
- assert_nothing_raised{ @content.big = true }
28
- end
29
-
30
- def test_blink
31
- assert_respond_to(@content, :blink)
32
- assert_respond_to(@content, :blink=)
33
- assert_nothing_raised{ @content.blink }
34
- assert_nothing_raised{ @content.blink = true }
35
- end
36
-
37
- def test_italic
38
- assert_respond_to(@content, :italic)
39
- assert_respond_to(@content, :italic=)
40
- assert_nothing_raised{ @content.italic }
41
- assert_nothing_raised{ @content.italic = true }
42
- end
43
-
44
- def test_strike
45
- assert_respond_to(@content, :strike)
46
- assert_respond_to(@content, :strike=)
47
- assert_nothing_raised{ @content.strike }
48
- assert_nothing_raised{ @content.strike = true }
49
- end
50
-
51
- def test_sub
52
- assert_respond_to(@content, :sub)
53
- assert_respond_to(@content, :sub)
54
- assert_nothing_raised{ @content.sub }
55
- assert_nothing_raised{ @content.sub = true }
56
- end
57
-
58
- def test_sup
59
- assert_respond_to(@content, :sup)
60
- assert_respond_to(@content, :sup)
61
- assert_nothing_raised{ @content.sup }
62
- assert_nothing_raised{ @content.sup = true }
63
- end
64
-
65
- def test_tt
66
- assert_respond_to(@content, :tt)
67
- assert_respond_to(@content, :tt)
68
- assert_nothing_raised{ @content.tt }
69
- assert_nothing_raised{ @content.tt = true }
70
- end
71
-
72
- def test_underline
73
- assert_respond_to(@content, :underline)
74
- assert_respond_to(@content, :underline)
75
- assert_nothing_raised{ @content.underline }
76
- assert_nothing_raised{ @content.underline = true }
77
- end
78
-
79
- def teardown
80
- @content = nil
81
- end
82
- end