|
|
@@ -23,6 +23,9 @@ func (s *StyleSuite) TestNewStyleDefaults(c *C) {
|
|
|
func (s *StyleSuite) TestMakeXLSXStyleElements(c *C) {
|
|
|
style := NewStyle()
|
|
|
font := *NewFont(12, "Verdana")
|
|
|
+ font.Bold = true
|
|
|
+ font.Italic = true
|
|
|
+ font.Underline = true
|
|
|
style.Font = font
|
|
|
fill := *NewFill("solid", "00FF0000", "FF000000")
|
|
|
style.Fill = fill
|
|
|
@@ -37,6 +40,9 @@ func (s *StyleSuite) TestMakeXLSXStyleElements(c *C) {
|
|
|
// c.Assert(xNumFmt.FormatCode, Equals, "GENERAL")
|
|
|
c.Assert(xFont.Sz.Val, Equals, "12")
|
|
|
c.Assert(xFont.Name.Val, Equals, "Verdana")
|
|
|
+ c.Assert(xFont.B, NotNil)
|
|
|
+ c.Assert(xFont.I, NotNil)
|
|
|
+ c.Assert(xFont.U, NotNil)
|
|
|
c.Assert(xFill.PatternFill.PatternType, Equals, "solid")
|
|
|
c.Assert(xFill.PatternFill.FgColor.RGB, Equals, "00FF0000")
|
|
|
c.Assert(xFill.PatternFill.BgColor.RGB, Equals, "FF000000")
|