summaryrefslogtreecommitdiffhomepage
path: root/test/workbook/worksheet/tc_comment.rb
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2013-03-16 11:40:54 +0900
committerRandy Morgan <[email protected]>2013-03-16 11:40:54 +0900
commit38e1638fa715398429797276058f2c18e9e21e9b (patch)
tree30fd423d54033d2a525ebd6092f6da7a1342efbd /test/workbook/worksheet/tc_comment.rb
parent0cb6eec06b6e13df28a6ce9e0b90e4e1ed8d5b28 (diff)
downloadcaxlsx-38e1638fa715398429797276058f2c18e9e21e9b.tar.gz
caxlsx-38e1638fa715398429797276058f2c18e9e21e9b.zip
First run at 'hidden' comments WIP
The xml is genrated correcty, but the comment still shows until it is selected once in the excel ui - so I must be missing something.
Diffstat (limited to 'test/workbook/worksheet/tc_comment.rb')
-rw-r--r--test/workbook/worksheet/tc_comment.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/workbook/worksheet/tc_comment.rb b/test/workbook/worksheet/tc_comment.rb
index 0cb79bcc..eacce376 100644
--- a/test/workbook/worksheet/tc_comment.rb
+++ b/test/workbook/worksheet/tc_comment.rb
@@ -5,7 +5,7 @@ class TestComment < Test::Unit::TestCase
p = Axlsx::Package.new
wb = p.workbook
@ws = wb.add_worksheet
- @c1 = @ws.add_comment :ref => 'A1', :text => 'penut machine', :author => 'crank'
+ @c1 = @ws.add_comment :ref => 'A1', :text => 'penut machine', :author => 'crank', :visible => false
@c2 = @ws.add_comment :ref => 'C3', :text => 'rust bucket', :author => 'PO'
end
@@ -28,6 +28,10 @@ class TestComment < Test::Unit::TestCase
assert_equal(@c2.author_index, 0)
end
+ def test_visible
+ assert_equal(false, @c1.visible)
+ assert_equal(true, @c2.visible)
+ end
def test_ref
assert(@c1.ref == 'A1')
assert(@c2.ref == 'C3')