Skip to content

Commit

Permalink
Test Coverage improved
Browse files Browse the repository at this point in the history
  • Loading branch information
Vertumnus committed Sep 16, 2017
1 parent 8edb8df commit c3fb81c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "jqm-gradient-chooser",
"description": "A collapsible widget to specify a gradient for jQuery Mobile",
"version": "1.0.0",
"version": "1.0.1",
"keywords": [
"jQuery",
"mobile",
Expand Down
8 changes: 8 additions & 0 deletions test/all.auto.js
Expand Up @@ -57,6 +57,14 @@ describe('Widget', function(){
gradient.gradientchooser('option', 'actionIcon', 'recycle')
assert(gradient.find('.ui-gradient .ui-block-b a').hasClass('ui-icon-recycle'), 'Action button got not correct icon')
})
it('should change the color from icon', function(){
gradient.gradientchooser('option', 'fromIcon', 'arrow-r')
assert(gradient.find('.ui-gradient .ui-block-a a').hasClass('ui-icon-arrow-r'), 'Color from button got not correct icon')
})
it('should change the color to icon', function(){
gradient.gradientchooser('option', 'toIcon', 'arrow-l')
assert(gradient.find('.ui-gradient .ui-block-c a').hasClass('ui-icon-arrow-l'), 'Color to button got not correct icon')
})
it('should change the color from', function(){
gradient.gradientchooser('option', 'colorFrom', '#ff0000')
assert(gradient.gradientchooser('colorFrom') === '#ff0000', 'Color From not changed to red')
Expand Down

0 comments on commit c3fb81c

Please sign in to comment.