mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
use evalLine in integration/settings/test-resize
This commit is contained in:
parent
70085bc056
commit
b86ec72a4e
@ -47,13 +47,8 @@ casper.test.begin('Test resize feature works', 16 , function(test) {
|
|||||||
function onDrawerClosed() {
|
function onDrawerClosed() {
|
||||||
test.assert(!isDrawerExpanded(), 'settings drawer is closed');
|
test.assert(!isDrawerExpanded(), 'settings drawer is closed');
|
||||||
|
|
||||||
test.assertEquals(casper.evaluate(function () {
|
test.assertEquals(evalLine('pskl.app.piskelController.getPiskel().getWidth()'), 320, 'Piskel width is now 320 pixels');
|
||||||
return pskl.app.piskelController.getPiskel().getWidth();
|
test.assertEquals(evalLine('pskl.app.piskelController.getPiskel().getHeight()'), 320, 'Piskel height is now 320 pixels');
|
||||||
}), 320, 'Piskel width is now 320 pixels');
|
|
||||||
|
|
||||||
test.assertEquals(casper.evaluate(function () {
|
|
||||||
return pskl.app.piskelController.getPiskel().getHeight();
|
|
||||||
}), 320, 'Piskel height is now 320 pixels');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
casper
|
casper
|
||||||
|
Loading…
Reference in New Issue
Block a user