Blame test/print-job-and-wait.test

Packit 2fc92b
# Print a test page using print-job
Packit 2fc92b
{
Packit 2fc92b
	# The name of the test...
Packit 2fc92b
	NAME "Print file using Print-Job"
Packit 2fc92b
Packit 2fc92b
	# The operation to use
Packit 2fc92b
	OPERATION Print-Job
Packit 2fc92b
Packit 2fc92b
	# Attributes, starting in the operation group...
Packit 2fc92b
	GROUP operation-attributes-tag
Packit 2fc92b
	ATTR charset attributes-charset utf-8
Packit 2fc92b
	ATTR language attributes-natural-language en
Packit 2fc92b
	ATTR uri printer-uri $uri
Packit 2fc92b
	ATTR name requesting-user-name $user
Packit 2fc92b
	ATTR mimeMediaType document-format $filetype
Packit 2fc92b
Packit 2fc92b
	GROUP job-attributes-tag
Packit 2fc92b
	ATTR integer copies 1
Packit 2fc92b
Packit 2fc92b
	FILE $filename
Packit 2fc92b
Packit 2fc92b
	# What statuses are OK?
Packit 2fc92b
	STATUS successful-ok
Packit 2fc92b
	STATUS successful-ok-ignored-or-substituted-attributes
Packit 2fc92b
Packit 2fc92b
	# What attributes do we expect?
Packit 2fc92b
	EXPECT job-id
Packit 2fc92b
	EXPECT job-uri
Packit 2fc92b
}
Packit 2fc92b
{
Packit 2fc92b
	NAME "Wait for job to complete..."
Packit 2fc92b
	OPERATION Get-Job-Attributes
Packit 2fc92b
	GROUP operation-attributes-tag
Packit 2fc92b
	ATTR charset attributes-charset utf-8
Packit 2fc92b
	ATTR language attributes-natural-language en
Packit 2fc92b
	ATTR uri printer-uri $uri
Packit 2fc92b
	ATTR integer job-id $job-id
Packit 2fc92b
	ATTR name requesting-user-name $user
Packit 2fc92b
Packit 2fc92b
	STATUS successful-ok
Packit 2fc92b
	EXPECT job-id
Packit 2fc92b
	EXPECT job-state WITH-VALUE >5 REPEAT-NO-MATCH
Packit 2fc92b
	DISPLAY job-state
Packit 2fc92b
	DISPLAY job-state-reasons
Packit 2fc92b
}