Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
checkbox-group: Write tests on templates
- Loading branch information
lapinp
authored and
gela
committed
Jul 23, 2014
1 parent
00e9a97
commit 8253f28
Showing
5 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
common.blocks/checkbox-group/checkbox-group.tmpl-specs/10-no_type_disabled_item.bemjson.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
({ | ||
block : 'checkbox-group', | ||
mods : { theme : 'normal', size : 'm' }, | ||
name : 'default', | ||
options : [ | ||
{ val : 1, text : 'first' }, | ||
{ val : 3, text : 'third', disabled : true, checked : true } | ||
] | ||
}) |
1 change: 1 addition & 0 deletions
1
common.blocks/checkbox-group/checkbox-group.tmpl-specs/10-no_type_disabled_item.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<span class="checkbox-group checkbox-group_theme_normal checkbox-group_size_m control-group i-bem" data-bem="{"checkbox-group":{}}"><label class="checkbox checkbox_theme_normal checkbox_size_m i-bem" data-bem="{"checkbox":{}}"><span class="checkbox__box"><input class="checkbox__control" type="checkbox" autocomplete="off" name="default" value="1"/></span>first</label><br/><label class="checkbox checkbox_theme_normal checkbox_size_m checkbox_checked checkbox_disabled i-bem" data-bem="{"checkbox":{}}"><span class="checkbox__box"><input class="checkbox__control" type="checkbox" autocomplete="off" name="default" value="3" checked="checked" disabled="disabled"/></span>third</label></span> |
8 changes: 8 additions & 0 deletions
8
....blocks/checkbox-group/checkbox-group.tmpl-specs/20-type_button_disabled_group.bemjson.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
({ | ||
block : 'checkbox-group', | ||
mods : { type : 'button', disabled : true }, | ||
options : [ | ||
{ text : 'first' }, | ||
{ text : 'VK', icon : { block : 'icon', mods : { social : 'vk' } } } | ||
] | ||
}) |
1 change: 1 addition & 0 deletions
1
common.blocks/checkbox-group/checkbox-group.tmpl-specs/20-type_button_disabled_group.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<span class="checkbox-group checkbox-group_type_button checkbox-group_disabled control-group i-bem" data-bem="{"checkbox-group":{}}"><button class="button button_togglable_check button_disabled button__control checkbox checkbox_type_button checkbox_disabled i-bem" data-bem="{"button":{},"checkbox":{}}" role="button" disabled="disabled"><input class="checkbox__control" type="checkbox" autocomplete="off" disabled="disabled"/><span class="button__text">first</span></button><button class="button button_togglable_check button_disabled button__control checkbox checkbox_type_button checkbox_disabled i-bem" data-bem="{"button":{},"checkbox":{}}" role="button" disabled="disabled"><input class="checkbox__control" type="checkbox" autocomplete="off" disabled="disabled"/><i class="icon icon_social_vk"></i><span class="button__text">VK</span></button></span> |