Skip to content

Commit

Permalink
popup: fix gemini tests to use proper api (closes #973)
Browse files Browse the repository at this point in the history
  • Loading branch information
persidskiy committed Aug 28, 2014
1 parent 13d8e00 commit e5409cb
Show file tree
Hide file tree
Showing 26 changed files with 24 additions and 42 deletions.
55 changes: 16 additions & 39 deletions common.blocks/popup/popup.tests/gemini.bemjson.js
Expand Up @@ -9,61 +9,38 @@
content : [
{
block : 'test-nested',
cls : 'test-nested-first',
js : true,
content : [
{ block : 'link', mods : { pseudo : true }, content : 'open' },
{ block : 'link', mods : { pseudo : true }, cls : 'test-nested-link-1', content : 'open' },
{
block : 'popup',
mods : { theme : 'simple', autoclosable : true, visible : true },
cls : 'test-nested-popup',
mods : { theme : 'normal' },
content : [
'popup is opened',
'first popup',
{
tag : 'p',
block : 'test-nested',
js : true,
content : [
{ tag : 'p', content : {
block : 'link',
mods : { pseudo : true },
cls : 'test-nested-link-2',
content : 'open second'
} },
{
block : 'test-nested',
js : true,
content : [
{ block : 'link', mods : { pseudo : true }, content : 'open' },
{
block : 'popup',
cls : 'test-nested-secondPopup',
mods : { theme : 'simple', visible : true },
content : [
'popup is opened',
{
tag : 'p',
content : [
{
block : 'test-nested',
js : true,
content : [
{ block : 'link', mods : { pseudo : true }, content : 'open' },
{
block : 'popup',
mods : { theme : 'simple', autoclosable : true, visible : true },
cls : 'test-nested-lastPopup',
content : 'popup is opened'
}
]
}
]

}
]
}
]
block : 'popup',
cls : 'test-nested-popup',
mods : { theme : 'normal' },
content : 'second popup'
}
]

}
]
}
]
},

{ tag : 'h2', content : 'normal' },
{
block : 'test-wrap',
content : [
Expand Down
11 changes: 8 additions & 3 deletions gemini/popup.gemini.js
Expand Up @@ -14,7 +14,7 @@ gemini.suite('popup', function(root) {
.forEach(function(test) {
var popupSwitcher = '.' + test + ' .link',
popupSelector = ' .' + test + '-popup';

gemini.suite(test, function(suite) {
suite
.setCaptureElements(popupSwitcher, popupSelector)
Expand All @@ -28,8 +28,13 @@ gemini.suite('popup', function(root) {

gemini.suite('test-nested', function(suite) {
suite
.setCaptureElements('.test-nested-first .link', '.test-nested-secondPopup', '.test-nested-lastPopup')
.capture('plain');
.setCaptureElements('.test-nested-popup', '.test-nested-link-1')
.capture('opened', function(actions) {
actions
.click('.test-nested-link-1')
.click('.test-nested-link-2')
.wait(300);
});
});

});
Binary file modified gemini/screens/popup/all/opened/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 modified gemini/screens/popup/all/opened/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 modified gemini/screens/popup/all/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 modified gemini/screens/popup/all/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 modified gemini/screens/popup/bottom/opened/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 modified gemini/screens/popup/bottom/opened/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 modified gemini/screens/popup/bottom/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 modified gemini/screens/popup/bottom/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 modified gemini/screens/popup/left/opened/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 modified gemini/screens/popup/left/opened/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 modified gemini/screens/popup/left/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 modified gemini/screens/popup/left/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 modified gemini/screens/popup/right/opened/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 modified gemini/screens/popup/right/opened/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 modified gemini/screens/popup/right/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 modified gemini/screens/popup/right/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 not shown.
Binary file not shown.
Binary file modified gemini/screens/popup/top/opened/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 modified gemini/screens/popup/top/opened/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 modified gemini/screens/popup/top/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 modified gemini/screens/popup/top/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.

0 comments on commit e5409cb

Please sign in to comment.