Skip to content

Commit

Permalink
fix gemini tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aristov committed Mar 13, 2015
1 parent 80747c6 commit 0139e5a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
18 changes: 12 additions & 6 deletions common.blocks/dropdown/dropdown.tests/gemini.bemjson.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,25 @@
content : {
block : 'dropdown',
mods : { switcher : 'link', theme : 'islands' },
switcher : 'link',
popup : { block : 'popup', mods : { autoclosable : true, 'islands-link' : true }, content : 'popup' },
cls : 'islands-link'
switcher : {
block : 'link',
content : 'link',
cls : 'islands-link'
},
popup : { block : 'popup', mods : { autoclosable : true, 'islands-link' : true }, content : 'popup' }
}
},
{
block : 'test',
content : {
block : 'dropdown',
mods : { switcher : 'button', theme : 'islands', size : 's' },
switcher : 'link',
popup : { block : 'popup', mods : { autoclosable : true, 'islands-button' : true }, content : 'popup' },
cls : 'islands-button'
switcher : {
block : 'button',
text : 'link',
cls : 'islands-button'
},
popup : { block : 'popup', mods : { autoclosable : true, 'islands-button' : true }, content : 'popup' }
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion gemini/dropdown.gemini.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ gemini.suite('dropdown', function(root) {
'islands-button'
]
.forEach(function(test) {
var dropdownSelector = '.' + test + (!!~test.indexOf('button')? ' .button' : ' .link');
var dropdownSelector = '.' + test + (!!~test.indexOf('button')? '.button' : '.link');

gemini.suite(test, function(suite) {
suite
Expand Down

0 comments on commit 0139e5a

Please sign in to comment.