Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
gela
committed
Jul 9, 2014
1 parent
0eca183
commit 9d6beda
Showing
84 changed files
with
210 additions
and
0 deletions.
There are no files selected for viewing
144 changes: 144 additions & 0 deletions
144
common.blocks/checkbox/checkbox.tests/gemini.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,144 @@ | ||
({ | ||
block : 'page', | ||
title : 'bem-components: checkbox', | ||
mods : { theme : 'normal' }, | ||
head : [ | ||
{ elem : 'css', url : '_gemini.css' }, | ||
{ elem : 'js', url : '_gemini.js' } | ||
], | ||
content : [ | ||
|
||
{ tag : 'h2', content : 'default' }, | ||
{ | ||
block : 'test', content : { | ||
block : 'checkbox', | ||
text : 'first' | ||
}, | ||
cls : 'default-enabled' | ||
}, | ||
{ | ||
block : 'test', content : { | ||
block : 'checkbox', | ||
mods : { disabled : true }, | ||
text : 'second' | ||
}, | ||
cls : 'default-disabled' | ||
}, | ||
{ | ||
block : 'test', content : { | ||
block : 'checkbox', | ||
mods : { disabled : true, checked : true }, | ||
text : 'third' | ||
}, | ||
cls : 'default-disabled-checked' | ||
}, | ||
|
||
{ tag : 'hr' }, | ||
|
||
{ tag : 'h2', content : 'normal' }, | ||
{ | ||
block : 'test', | ||
content : { | ||
block : 'checkbox', | ||
mods : { theme : 'normal', size : 'm' }, | ||
text : 'size_m' | ||
}, | ||
cls : 'normal-size_m-enabled' | ||
}, | ||
{ | ||
block : 'test', | ||
content : { | ||
block : 'checkbox', | ||
mods : { theme : 'normal', size : 'm', disabled : true }, | ||
text : 'size_m' | ||
}, | ||
cls : 'normal-size_m-disabled' | ||
}, | ||
{ | ||
block : 'test', | ||
content : { | ||
block : 'checkbox', | ||
mods : { theme : 'normal', size : 'm', disabled : true, checked : true }, | ||
text : 'size_m' | ||
}, | ||
cls : 'normal-size_m-disabled-checked' | ||
}, | ||
{ | ||
block : 'test', | ||
content : { | ||
block : 'checkbox', | ||
mods : { theme : 'normal', size : 'l' }, | ||
text : 'size_l' | ||
}, | ||
cls : 'normal-size_l-enabled' | ||
}, | ||
{ | ||
block : 'test', | ||
content : { | ||
block : 'checkbox', | ||
mods : { theme : 'normal', size : 'l', disabled : true }, | ||
text : 'size_l' | ||
}, | ||
cls : 'normal-size_l-disabled' | ||
}, | ||
{ | ||
block : 'test', | ||
content : { | ||
block : 'checkbox', | ||
mods : { theme : 'normal', size : 'l', disabled : true, checked : true }, | ||
text : 'size_l' | ||
}, | ||
cls : 'normal-size_l-disabled-checked' | ||
}, | ||
|
||
{ tag : 'hr' }, | ||
|
||
{ tag : 'h2', content : 'normal-button' }, | ||
[ | ||
{ | ||
block : 'checkbox', | ||
mods : { theme : 'normal', size : 'm', type : 'button' }, | ||
text : 'first', | ||
mix : [{ block : 'normal-button-enabled' }] | ||
}, | ||
{ | ||
block : 'checkbox', | ||
mods : { theme : 'normal', size : 'm', type : 'button', disabled : true }, | ||
text : 'second', | ||
mix : [{ block : 'normal-button-disabled' }] | ||
}, | ||
{ | ||
block : 'checkbox', | ||
mods : { theme : 'normal', size : 'm', type : 'button', disabled : true, checked : true }, | ||
text : 'third', | ||
mix : [{ block : 'normal-button-disabled-checked' }] | ||
}, | ||
{ | ||
block : 'checkbox', | ||
mods : { theme : 'normal', size : 'm', type : 'button' }, | ||
text : 'icon', | ||
icon : { block : 'icon', mods : { social : 'twitter' } }, | ||
mix : [{ block : 'normal-button-icon-enabled' }] | ||
}, | ||
{ | ||
block : 'checkbox', | ||
mods : { theme : 'normal', size : 'm', type : 'button', disabled : true }, | ||
text : 'icon', | ||
icon : { block : 'icon', mods : { social : 'twitter' } }, | ||
mix : [{ block : 'normal-button-icon-disabled' }] | ||
}, | ||
{ | ||
block : 'checkbox', | ||
mods : { theme : 'normal', size : 'm', type : 'button', disabled : true, checked : true }, | ||
text : 'icon', | ||
icon : { block : 'icon', mods : { social : 'twitter' } }, | ||
mix : [{ block : 'normal-button-icon-disabled-checked' }] | ||
} | ||
].map(function(block) { | ||
return { | ||
block : 'test', | ||
content : block | ||
}; | ||
}) | ||
] | ||
}); |
5 changes: 5 additions & 0 deletions
5
common.blocks/checkbox/checkbox.tests/gemini.blocks/test/test.roo
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,5 @@ | ||
.test | ||
{ | ||
padding: 5px; | ||
width: 150px; | ||
} |
5 changes: 5 additions & 0 deletions
5
common.blocks/checkbox/checkbox.tests/gemini.blocks/test/test.styl
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,5 @@ | ||
.test | ||
{ | ||
padding: 5px; | ||
width: 150px; | ||
} |
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,56 @@ | ||
var gemini = require('gemini'); | ||
|
||
gemini.suite('checkbox', function(root) { | ||
|
||
root.setUrl('desktop.tests/checkbox/gemini/gemini.html'); | ||
|
||
[ | ||
'default', | ||
'normal-size_m', | ||
'normal-button', | ||
'normal-button-icon', | ||
'normal-size_l' | ||
] | ||
.forEach(function(test) { | ||
var checkboxSelector = '.' + test, | ||
checkboxEnabledSelector = checkboxSelector + '-enabled', | ||
checkboxDisabledSelector = checkboxSelector + '-disabled', | ||
element = !!~test.indexOf('button') ? checkboxEnabledSelector : ' .checkbox__control'; | ||
|
||
gemini.suite(test + '-enabled', function(suite) { | ||
suite | ||
.setCaptureElements(checkboxEnabledSelector) | ||
.before(function(actions, find) { | ||
this.checkbox = find(checkboxEnabledSelector + element); | ||
}) | ||
.capture('plain') | ||
.capture('hovered', function(actions) { | ||
actions.mouseMove(this.checkbox); | ||
}) | ||
.capture('focused-hard', function(actions) { | ||
actions.sendKeys(this.checkbox, 'focused-hard'); //send not empty string | ||
}) | ||
.capture('focused-checked', function(actions) { | ||
actions.click(this.checkbox); | ||
}) | ||
.capture('checked', function(actions) { | ||
actions.click('.page'); | ||
}) | ||
.capture('checked-hovered', function(actions) { | ||
actions.mouseMove(this.checkbox); | ||
}); | ||
}); | ||
|
||
gemini.suite(test + '-disabled', function(suite) { | ||
suite | ||
.setCaptureElements(checkboxDisabledSelector) | ||
.capture('plain'); | ||
}); | ||
|
||
gemini.suite(test + '-disabled-checked', function(suite) { | ||
suite | ||
.setCaptureElements(checkboxDisabledSelector + '-checked') | ||
.capture('plain'); | ||
}); | ||
}); | ||
}); |
Binary file added
BIN
+382 Bytes
gemini/screens/checkbox/default-disabled-checked/plain/chrome-v35.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+551 Bytes
gemini/screens/checkbox/default-disabled-checked/plain/firefox-v30.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+373 Bytes
gemini/screens/checkbox/default-enabled/checked-hovered/chrome-v35.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+293 Bytes
gemini/screens/checkbox/default-enabled/checked-hovered/firefox-v30.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+714 Bytes
gemini/screens/checkbox/default-enabled/focused-checked/chrome-v35.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+319 Bytes
gemini/screens/checkbox/default-enabled/focused-checked/firefox-v30.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+621 Bytes
gemini/screens/checkbox/default-enabled/focused-hard/chrome-v35.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+273 Bytes
gemini/screens/checkbox/default-enabled/focused-hard/firefox-v30.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+433 Bytes
gemini/screens/checkbox/normal-button-disabled-checked/plain/chrome-v35.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+426 Bytes
gemini/screens/checkbox/normal-button-disabled-checked/plain/firefox-v30.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+337 Bytes
gemini/screens/checkbox/normal-button-disabled/plain/chrome-v35.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+334 Bytes
gemini/screens/checkbox/normal-button-disabled/plain/firefox-v30.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+483 Bytes
gemini/screens/checkbox/normal-button-enabled/checked-hovered/chrome-v35.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+496 Bytes
gemini/screens/checkbox/normal-button-enabled/checked-hovered/firefox-v30.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+470 Bytes
gemini/screens/checkbox/normal-button-enabled/checked/chrome-v35.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+487 Bytes
gemini/screens/checkbox/normal-button-enabled/checked/firefox-v30.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.14 KB
gemini/screens/checkbox/normal-button-enabled/focused-checked/chrome-v35.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.31 KB
gemini/screens/checkbox/normal-button-enabled/focused-checked/firefox-v30.png
Oops, something went wrong.
Binary file added
BIN
+1.17 KB
gemini/screens/checkbox/normal-button-enabled/focused-hard/chrome-v35.png
Oops, something went wrong.
Binary file added
BIN
+1.32 KB
gemini/screens/checkbox/normal-button-enabled/focused-hard/firefox-v30.png
Oops, something went wrong.
Binary file added
BIN
+260 Bytes
gemini/screens/checkbox/normal-button-enabled/hovered/chrome-v35.png
Oops, something went wrong.
Binary file added
BIN
+267 Bytes
gemini/screens/checkbox/normal-button-enabled/hovered/firefox-v30.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+267 Bytes
gemini/screens/checkbox/normal-button-enabled/plain/firefox-v30.png
Oops, something went wrong.
Binary file added
BIN
+453 Bytes
gemini/screens/checkbox/normal-button-icon-disabled-checked/plain/chrome-v35.png
Oops, something went wrong.
Binary file added
BIN
+443 Bytes
gemini/screens/checkbox/normal-button-icon-disabled-checked/plain/firefox-v30.png
Oops, something went wrong.
Binary file added
BIN
+241 Bytes
gemini/screens/checkbox/normal-button-icon-disabled/plain/chrome-v35.png
Oops, something went wrong.
Binary file added
BIN
+241 Bytes
gemini/screens/checkbox/normal-button-icon-disabled/plain/firefox-v30.png
Oops, something went wrong.
Binary file added
BIN
+532 Bytes
gemini/screens/checkbox/normal-button-icon-enabled/checked-hovered/chrome-v35.png
Oops, something went wrong.
Binary file added
BIN
+544 Bytes
gemini/screens/checkbox/normal-button-icon-enabled/checked-hovered/firefox-v30.png
Oops, something went wrong.
Binary file added
BIN
+522 Bytes
gemini/screens/checkbox/normal-button-icon-enabled/checked/chrome-v35.png
Oops, something went wrong.
Binary file added
BIN
+542 Bytes
gemini/screens/checkbox/normal-button-icon-enabled/checked/firefox-v30.png
Oops, something went wrong.
Binary file added
BIN
+1.2 KB
gemini/screens/checkbox/normal-button-icon-enabled/focused-checked/chrome-v35.png
Oops, something went wrong.
Binary file added
BIN
+1.36 KB
gemini/screens/checkbox/normal-button-icon-enabled/focused-checked/firefox-v30.png
Oops, something went wrong.
Binary file added
BIN
+1.22 KB
gemini/screens/checkbox/normal-button-icon-enabled/focused-hard/chrome-v35.png
Oops, something went wrong.
Binary file added
BIN
+1.38 KB
gemini/screens/checkbox/normal-button-icon-enabled/focused-hard/firefox-v30.png
Oops, something went wrong.
Binary file added
BIN
+282 Bytes
gemini/screens/checkbox/normal-button-icon-enabled/hovered/chrome-v35.png
Oops, something went wrong.
Binary file added
BIN
+289 Bytes
gemini/screens/checkbox/normal-button-icon-enabled/hovered/firefox-v30.png
Oops, something went wrong.
Binary file added
BIN
+278 Bytes
gemini/screens/checkbox/normal-button-icon-enabled/plain/chrome-v35.png
Oops, something went wrong.
Binary file added
BIN
+289 Bytes
gemini/screens/checkbox/normal-button-icon-enabled/plain/firefox-v30.png
Oops, something went wrong.
Binary file added
BIN
+427 Bytes
gemini/screens/checkbox/normal-size_l-disabled-checked/plain/chrome-v35.png
Oops, something went wrong.
Binary file added
BIN
+450 Bytes
gemini/screens/checkbox/normal-size_l-disabled-checked/plain/firefox-v30.png
Oops, something went wrong.
Binary file added
BIN
+321 Bytes
gemini/screens/checkbox/normal-size_l-disabled/plain/chrome-v35.png
Oops, something went wrong.
Binary file added
BIN
+317 Bytes
gemini/screens/checkbox/normal-size_l-disabled/plain/firefox-v30.png
Oops, something went wrong.
Binary file added
BIN
+816 Bytes
gemini/screens/checkbox/normal-size_l-enabled/checked-hovered/chrome-v35.png
Oops, something went wrong.
Binary file added
BIN
+949 Bytes
gemini/screens/checkbox/normal-size_l-enabled/checked-hovered/firefox-v30.png
Oops, something went wrong.
Binary file added
BIN
+802 Bytes
gemini/screens/checkbox/normal-size_l-enabled/checked/chrome-v35.png
Oops, something went wrong.
Binary file added
BIN
+937 Bytes
gemini/screens/checkbox/normal-size_l-enabled/checked/firefox-v30.png
Oops, something went wrong.
Binary file added
BIN
+1.38 KB
gemini/screens/checkbox/normal-size_l-enabled/focused-checked/chrome-v35.png
Oops, something went wrong.
Binary file added
BIN
+1.53 KB
gemini/screens/checkbox/normal-size_l-enabled/focused-checked/firefox-v30.png
Oops, something went wrong.
Binary file added
BIN
+1.17 KB
gemini/screens/checkbox/normal-size_l-enabled/focused-hard/chrome-v35.png
Oops, something went wrong.
Binary file added
BIN
+1.19 KB
gemini/screens/checkbox/normal-size_l-enabled/focused-hard/firefox-v30.png
Oops, something went wrong.
Binary file added
BIN
+353 Bytes
gemini/screens/checkbox/normal-size_l-enabled/hovered/chrome-v35.png
Oops, something went wrong.
Binary file added
BIN
+365 Bytes
gemini/screens/checkbox/normal-size_l-enabled/hovered/firefox-v30.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+366 Bytes
gemini/screens/checkbox/normal-size_l-enabled/plain/firefox-v30.png
Oops, something went wrong.
Binary file added
BIN
+415 Bytes
gemini/screens/checkbox/normal-size_m-disabled-checked/plain/chrome-v35.png
Oops, something went wrong.
Binary file added
BIN
+431 Bytes
gemini/screens/checkbox/normal-size_m-disabled-checked/plain/firefox-v30.png
Oops, something went wrong.
Binary file added
BIN
+335 Bytes
gemini/screens/checkbox/normal-size_m-disabled/plain/chrome-v35.png
Oops, something went wrong.
Binary file added
BIN
+333 Bytes
gemini/screens/checkbox/normal-size_m-disabled/plain/firefox-v30.png
Oops, something went wrong.
Binary file added
BIN
+833 Bytes
gemini/screens/checkbox/normal-size_m-enabled/checked-hovered/chrome-v35.png
Oops, something went wrong.
Binary file added
BIN
+945 Bytes
gemini/screens/checkbox/normal-size_m-enabled/checked-hovered/firefox-v30.png
Oops, something went wrong.
Binary file added
BIN
+825 Bytes
gemini/screens/checkbox/normal-size_m-enabled/checked/chrome-v35.png
Oops, something went wrong.
Binary file added
BIN
+940 Bytes
gemini/screens/checkbox/normal-size_m-enabled/checked/firefox-v30.png
Oops, something went wrong.
Binary file added
BIN
+1.33 KB
gemini/screens/checkbox/normal-size_m-enabled/focused-checked/chrome-v35.png
Oops, something went wrong.
Binary file added
BIN
+1.51 KB
gemini/screens/checkbox/normal-size_m-enabled/focused-checked/firefox-v30.png
Oops, something went wrong.
Binary file added
BIN
+1.14 KB
gemini/screens/checkbox/normal-size_m-enabled/focused-hard/chrome-v35.png
Oops, something went wrong.
Binary file added
BIN
+1.24 KB
gemini/screens/checkbox/normal-size_m-enabled/focused-hard/firefox-v30.png
Oops, something went wrong.
Binary file added
BIN
+364 Bytes
gemini/screens/checkbox/normal-size_m-enabled/hovered/chrome-v35.png
Oops, something went wrong.
Binary file added
BIN
+376 Bytes
gemini/screens/checkbox/normal-size_m-enabled/hovered/firefox-v30.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+375 Bytes
gemini/screens/checkbox/normal-size_m-enabled/plain/firefox-v30.png
Oops, something went wrong.