2 # Copyright 1999-2017 ImageMagick Studio LLC, a non-profit organization
3 # dedicated to making software imaging solutions freely available.
5 # You may not use this file except in compliance with the License. You may
6 # obtain a copy of the License at
8 # http://www.imagemagick.org/script/license.php
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
16 # Test getting attributes.
18 BEGIN { $| = 1; $test=1, print "1..25\n"; }
19 END {print "not ok 1\n" unless $loaded;}
23 require 't/subroutines.pl';
25 chdir 't' || die 'Cd failed';
27 testGetAttribute('input.miff','base-columns','70');
30 testGetAttribute('input.miff','base-filename','input.miff');
33 testGetAttribute('input.miff','base-rows','46');
36 testGetAttribute('input.miff','class','DirectClass');
39 testGetAttribute('input.miff','colors','3019');
42 testGetAttribute('input.miff','columns','70');
45 testGetAttribute('input.miff','directory',undef);
48 testGetAttribute('input.miff','gamma','0.454545');
51 testGetAttribute('input.miff','geometry',undef);
54 testGetAttribute('input.miff','height','46');
58 testGetAttribute('input.miff','label',undef);
61 testGetAttribute('input.miff','matte','0');
64 testGetAttribute('input.miff','error','0');
67 testGetAttribute('input.miff','montage',undef);
70 testGetAttribute('input.miff','maximum-error','0');
73 testGetAttribute('input.miff','mean-error','0');
76 testGetAttribute('input.miff','rows','46');
79 testGetAttribute('input.miff','signature',
80 'f7b3db46d6f696ea8392f0ad0be945dd502a806e2c1e9c082efef517191758f7');
83 testGetAttribute('input.miff','texture',undef);
86 testGetAttribute('input.miff','type','TrueColor');
89 testGetAttribute('input.miff','units','undefined units');
92 testGetAttribute('input.miff','view',undef);
95 testGetAttribute('input.miff','width','70');
98 testGetAttribute('input.miff','x-resolution','72');
101 testGetAttribute('input.miff','y-resolution','72');