Skip to content

Commit

Permalink
checkbox-group: Write tests on templates
Browse files Browse the repository at this point in the history
  • Loading branch information
lapinp committed Jul 9, 2014
1 parent a4dad39 commit 176f8e3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
({
block : 'checkbox-group',
name : 'checkbox-group',
mods : { type : 'button', theme : 'normal', size : 'l' },
options : [
{ val : 1, text : 'first' },
{ val : 2, text : 'second', checked : true, disabled : true },
{
val : 'vk',
text : 'vk',
icon : { block : 'icon', mods : { social : 'vk' } }
}
]
})
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<span class="checkbox-group checkbox-group_type_button checkbox-group_theme_normal checkbox-group_size_l control-group i-bem" data-bem="{&quot;checkbox-group&quot;:{}}"><button class="button button_togglable_check button_theme_normal button_size_l button__control checkbox checkbox_type_button checkbox_theme_normal checkbox_size_l i-bem" data-bem="{&quot;button&quot;:{},&quot;checkbox&quot;:{}}" role="button"><input class="checkbox__control" type="checkbox" autocomplete="off" name="checkbox-group" value="1"/><span class="button__text">first</span></button><button class="button button_togglable_check button_checked button_disabled button_theme_normal button_size_l button__control checkbox checkbox_type_button checkbox_theme_normal checkbox_size_l checkbox_checked checkbox_disabled i-bem" data-bem="{&quot;button&quot;:{},&quot;checkbox&quot;:{}}" role="button" disabled="disabled"><input class="checkbox__control" type="checkbox" autocomplete="off" name="checkbox-group" value="2" checked="checked" disabled="disabled"/><span class="button__text">third</span></button><button class="button button_togglable_check button_theme_normal button_size_l button__control checkbox checkbox_type_button checkbox_theme_normal checkbox_size_l i-bem" data-bem="{&quot;button&quot;:{},&quot;checkbox&quot;:{}}" role="button"><input class="checkbox__control" type="checkbox" autocomplete="off" name="checkbox-group" value="vk"/><i class="icon icon_social_vk"></i><span class="button__text">vk</span></button></span>

0 comments on commit 176f8e3

Please sign in to comment.