Add: NavBar background color setting

This commit is contained in:
surunzi
2017-10-05 16:27:59 +08:00
parent b161fba2f9
commit d3006e38d7
11 changed files with 122 additions and 25 deletions

View File

@@ -5,7 +5,8 @@ var cfg = eruda.config.create('eruda-test');
cfg.set({
testSwitch: false,
testSelect: '1',
testRange: 1
testRange: 1,
testColor: '#000'
});
beforeEach(function ()
@@ -59,3 +60,16 @@ describe('range', function ()
expect($el.find('input').length).toEqual(1);
});
});
describe('color', function ()
{
it('ui', function ()
{
var text = 'Test Color';
tool.color(cfg, 'testColor', text, ['#000', '#fff']);
var $el = $tool.find('.eruda-color');
expect($el.find('.eruda-head')).toContainText(text);
expect($el.find('ul li').length).toEqual(2);
});
});