mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
add resize test checking frame content
Moved shared methods to a head.js file
This commit is contained in:

committed by
juliandescottes

parent
569b508fd5
commit
a328e4d20e
@ -1,18 +1,5 @@
|
||||
casper.test.begin('Test resize feature works', 16 , function(test) {
|
||||
test.timeout = test.fail.bind(test, ['Test timed out']);
|
||||
function getValue(selector) {
|
||||
return casper.evaluate(
|
||||
'function () { \
|
||||
return document.querySelector(\'' + selector + '\').value;\
|
||||
}');
|
||||
};
|
||||
|
||||
function isDrawerExpanded() {
|
||||
return casper.evaluate(function () {
|
||||
var settingsElement = document.querySelector('[data-pskl-controller="settings"]');
|
||||
return settingsElement.classList.contains('expanded');
|
||||
});
|
||||
}
|
||||
|
||||
function onTestStart() {
|
||||
test.assertExists('#drawing-canvas-container canvas', 'Piskel ready, test starting');
|
||||
|
Reference in New Issue
Block a user