use evalLine in integration/settings/test-resize

This commit is contained in:
juliandescottes 2017-01-08 20:42:00 +01:00
parent 70085bc056
commit b86ec72a4e

View File

@ -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