From 61ed182ace7b7ac06a00b0bb9d572cc464b43493 Mon Sep 17 00:00:00 2001 From: Fitz Elliott Date: Sat, 5 Jul 2014 12:13:01 -0400 Subject: add TabColor support to ParseXLSX --- t/data/tab-color.xlsx | Bin 0 -> 27087 bytes t/tab-color.t | 15 +++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 t/data/tab-color.xlsx create mode 100644 t/tab-color.t (limited to 't') diff --git a/t/data/tab-color.xlsx b/t/data/tab-color.xlsx new file mode 100644 index 0000000..7061e84 Binary files /dev/null and b/t/data/tab-color.xlsx differ diff --git a/t/tab-color.t b/t/tab-color.t new file mode 100644 index 0000000..ef1ab49 --- /dev/null +++ b/t/tab-color.t @@ -0,0 +1,15 @@ +#!/usr/bin/env perl +use strict; +use warnings; +use Test::More; + +use Spreadsheet::ParseXLSX; + +my $wb = Spreadsheet::ParseXLSX->new->parse('t/data/tab-color.xlsx'); +my $ws1 = $wb->worksheet(0); +is($ws1->get_tab_color, '#FF0000'); + +my $ws2 = $wb->worksheet(1); +is($ws2->get_tab_color, undef); + +done_testing; -- cgit v1.2.3-54-g00ecf