]>
Commit | Line | Data |
---|---|---|
f8b3a85b MS |
1 | # Print a test page using Print-Job + media-col |
2 | # | |
3 | # Usage: | |
4 | # | |
5 | # ./ipptest -f filename ipp://... print-job-media-col.test | |
6 | { | |
7 | # The name of the test... | |
8 | NAME "Print test page using Print-Job + media-col" | |
9 | ||
10 | # The operation to use | |
11 | OPERATION Print-Job | |
12 | ||
13 | # Attributes, starting in the operation group... | |
14 | GROUP operation-attributes-tag | |
15 | ATTR charset attributes-charset utf-8 | |
16 | ATTR language attributes-natural-language en | |
17 | ATTR uri printer-uri $uri | |
18 | ATTR name requesting-user-name $user | |
19 | ATTR mimetype document-format application/octet-stream | |
20 | ||
21 | GROUP job-attributes-tag | |
22 | ATTR collection media-col { | |
23 | MEMBER collection media-size { | |
24 | # 4x6 | |
54afec33 MS |
25 | MEMBER integer x-dimension 10160 |
26 | MEMBER integer y-dimension 15240 | |
f8b3a85b | 27 | } |
7cf5915e MS |
28 | |
29 | # Borderless | |
30 | MEMBER integer media-left-margin 0 | |
31 | MEMBER integer media-right-margin 0 | |
32 | MEMBER integer media-top-margin 0 | |
33 | MEMBER integer media-bottom-margin 0 | |
f8b3a85b | 34 | } |
10d09e33 | 35 | ATTR enum print-quality 5 |
f8b3a85b MS |
36 | |
37 | FILE $filename | |
38 | ||
39 | # What statuses are OK? | |
40 | STATUS successful-ok | |
41 | STATUS successful-ok-ignored-or-substituted-attributes | |
42 | ||
43 | # What attributes do we expect? | |
44 | EXPECT job-id OF-TYPE integer WITH-VALUE >0 | |
45 | EXPECT job-uri OF-TYPE uri | |
46 | } |