mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Implement Import and Merge wizard dialog
This commit is contained in:
committed by
Julian Descottes
parent
b5a8eb9f96
commit
78bbc71e6c
@@ -38,11 +38,11 @@ casper.test.begin('Test resize content works, and check the output', 18, functio
|
||||
|
||||
test.assertExists('.resize-content-checkbox', 'Check if resize ratio checkbox is available');
|
||||
test.assert(!isChecked('.resize-content-checkbox'), 'Keep content checkbox is unchecked');
|
||||
test.assertExists('.resize-origin-container:not(.disabled)', 'Check the resize origin widget is currently disabled');
|
||||
test.assertExists('.anchor-wrapper:not(.disabled)', 'Check the resize anchor widget is currently disabled');
|
||||
|
||||
casper.click('.resize-content-checkbox');
|
||||
// Enabling "Resize content" will disabled the resize origin widget.
|
||||
casper.waitForSelector('.resize-origin-container.disabled', onResizeOriginDisabled, test.timeout, 10000);
|
||||
// Enabling "Resize content" will disabled the resize anchor widget.
|
||||
casper.waitForSelector('.anchor-wrapper.disabled', onResizeOriginDisabled, test.timeout, 10000);
|
||||
}
|
||||
|
||||
function onResizeOriginDisabled() {
|
||||
|
||||
@@ -46,7 +46,7 @@ casper.test.begin('Test resize feature works, and check the output', 20, functio
|
||||
test.assert(!isChecked('.resize-content-checkbox'), 'Keep content checkbox is unchecked');
|
||||
|
||||
// Check that the default origin selected is top left.
|
||||
var selectedOrigin = evalLine('document.querySelector(".resize-origin-option.selected").getAttribute("data-origin")');
|
||||
var selectedOrigin = evalLine('document.querySelector(".anchor-option.selected").getAttribute("data-origin")');
|
||||
test.assertEquals(selectedOrigin, 'TOPLEFT');
|
||||
|
||||
// Change the origin to bottom right.
|
||||
|
||||
Reference in New Issue
Block a user