@@ -2,6 +2,7 @@ var Plotly = require('@lib/index');
22var Lib = require ( '@src/lib' ) ;
33var Plots = require ( '@src/plots/plots' ) ;
44var Table = require ( '@src/traces/table' ) ;
5+ var attributes = require ( '@src/traces/table/attributes' ) ;
56var cn = require ( '@src/traces/table/constants' ) . cn ;
67
78var createGraphDiv = require ( '../assets/create_graph_div' ) ;
@@ -76,8 +77,8 @@ describe('table initialization tests', function() {
7677
7778 it ( '\'line\' specification should yield a default color' , function ( ) {
7879 var fullTrace = _supply ( { } ) ;
79- expect ( fullTrace . header . fill . color ) . toEqual ( '#777' ) ;
80- expect ( fullTrace . cells . fill . color ) . toEqual ( '#777' ) ;
80+ expect ( fullTrace . header . fill . color ) . toEqual ( attributes . header . fill . color . dflt ) ;
81+ expect ( fullTrace . cells . fill . color ) . toEqual ( attributes . cells . fill . color . dflt ) ;
8182 } ) ;
8283
8384 it ( '\'domain\' specification should have a default' , function ( ) {
@@ -108,17 +109,17 @@ describe('table initialization tests', function() {
108109 align : 'center' ,
109110 height : 28 ,
110111 line : { width : 1 , color : 'grey' } ,
111- fill : { color : '#777' } ,
112+ fill : { color : attributes . header . fill . color . dflt } ,
112113 font : { family : '"Open Sans", verdana, arial, sans-serif' , size : 12 , color : '#444' }
113114 } ) ;
114115
115116 expect ( fullTrace . cells ) . toEqual ( {
116117 values : [ 1 , 2 ] ,
117118 format : [ ] ,
118119 align : 'center' ,
119- height : 28 ,
120+ height : 20 ,
120121 line : { width : 1 , color : 'grey' } ,
121- fill : { color : '#777' } ,
122+ fill : { color : attributes . cells . fill . color . dflt } ,
122123 font : { family : '"Open Sans", verdana, arial, sans-serif' , size : 12 , color : '#444' }
123124 } ) ;
124125 } ) ;
0 commit comments