diff options
| author | Randy Morgan <[email protected]> | 2012-07-08 12:35:44 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-07-08 12:35:44 +0900 |
| commit | 7af812c429ffd2374f164fe2f1f4f19ba6cb5f64 (patch) | |
| tree | 271ae6dfd673b24d900fbf9df9ecb731cce002f0 /test | |
| parent | e121fe875ac8492dcd36ba71993e00b2eb4a9ed0 (diff) | |
| download | caxlsx-7af812c429ffd2374f164fe2f1f4f19ba6cb5f64.tar.gz caxlsx-7af812c429ffd2374f164fe2f1f4f19ba6cb5f64.zip | |
adding in axis line fill and patching view3d misname for line3DChart
Diffstat (limited to 'test')
| -rw-r--r-- | test/drawing/tc_axis.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/drawing/tc_axis.rb b/test/drawing/tc_axis.rb index 3c5484ea..807655d7 100644 --- a/test/drawing/tc_axis.rb +++ b/test/drawing/tc_axis.rb @@ -19,6 +19,14 @@ class TestAxis < Test::Unit::TestCase assert_equal('Foo', @axis.title.text) end + def test_color + @axis.color = "00FF00" + str = '<?xml version="1.0" encoding="UTF-8"?>' + str << '<c:chartSpace xmlns:c="' << Axlsx::XML_NS_C << '" xmlns:a="' << Axlsx::XML_NS_A << '">' + doc = Nokogiri::XML(@axis.to_xml_string(str)) + assert(doc.xpath("//a:srgbClr[@val='00FF00']")) + end + def test_cell_based_axis_title p = Axlsx::Package.new p.workbook.add_worksheet(:name=>'foosheet') do |sheet| |
