mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-20 09:38:37 +08:00
Add: NavBar background color setting
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user