summaryrefslogtreecommitdiffhomepage
path: root/test/stylesheet
diff options
context:
space:
mode:
authorStefan Daschek <[email protected]>2012-02-27 12:28:45 +0100
committerStefan Daschek <[email protected]>2012-02-27 12:51:29 +0100
commit6440dced8ff2da027fd4f60f434262ec60191573 (patch)
treef82492c2a6cf7af874ebbd9aee6be43d6c7efc1d /test/stylesheet
parentdc1f2922b1a546009ce3c4d937e8473939a51959 (diff)
downloadcaxlsx-6440dced8ff2da027fd4f60f434262ec60191573.tar.gz
caxlsx-6440dced8ff2da027fd4f60f434262ec60191573.zip
Add support for underlined text.
Diffstat (limited to 'test/stylesheet')
-rw-r--r--test/stylesheet/tc_font.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/stylesheet/tc_font.rb b/test/stylesheet/tc_font.rb
index f4b18776..141c285e 100644
--- a/test/stylesheet/tc_font.rb
+++ b/test/stylesheet/tc_font.rb
@@ -17,6 +17,7 @@ class TestFont < Test::Unit::TestCase
assert_equal(@item.family, nil)
assert_equal(@item.b, nil)
assert_equal(@item.i, nil)
+ assert_equal(@item.u, nil)
assert_equal(@item.strike, nil)
assert_equal(@item.outline, nil)
assert_equal(@item.shadow, nil)
@@ -61,6 +62,13 @@ class TestFont < Test::Unit::TestCase
assert_nothing_raised { @item.i = true }
assert_equal(@item.i, true)
end
+
+ # def u=(v) Axlsx::validate_boolean v; @u = v end
+ def test_u
+ assert_raise(ArgumentError) { @item.u = -7 }
+ assert_nothing_raised { @item.u = true }
+ assert_equal(@item.u, true)
+ end
# def strike=(v) Axlsx::validate_boolean v; @strike = v end
def test_strike