resize set: accept 'width' and 'height' keywords

Fixes #3275
This commit is contained in:
Orestis Floros
2018-05-02 18:59:17 +03:00
parent b901fc9464
commit c50bf50f09
5 changed files with 49 additions and 2 deletions

View File

@ -96,4 +96,22 @@ do_test(0, 0);
cmd 'resize set 100 ppt 0 px';
do_test(1333, 0);
################################################################################
# Use 'width' and 'height' keywords.
# See issue: #3275.
################################################################################
cmd 'resize set width 200 px';
do_test(200, 0);
cmd 'resize set height 200 px';
do_test(0, 200);
cmd 'resize set width 300 px height 300 px';
do_test(300, 300);
# ppt + keyword used only for height
cmd 'resize set 100 ppt height 100 px';
do_test(1333, 100);
done_testing;