]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - test/4.2-cups-printer-ops.test
Remove all of the Subversion keywords from various source files.
[thirdparty/cups.git] / test / 4.2-cups-printer-ops.test
index 26035bcfbc7ec3eafbf916a86a222d1c1d91ea2a..241238281c8509cfb69d7e0c6a5b5bb2d3d4a3b6 100644 (file)
@@ -1,5 +1,5 @@
 #
-# "$Id: 4.2-cups-printer-ops.test 6379 2007-03-21 14:57:22Z mike $"
+# "$Id$"
 #
 #   Verify that the CUPS printer operations work.
 #
        ATTR uri device-uri file:/tmp/Test1
        ATTR enum printer-state 3
        ATTR boolean printer-is-accepting-jobs true
+       ATTR text printer-info "Test Printer 1"
 
        FILE testps.ppd
 
        EXPECT attributes-charset
        EXPECT attributes-natural-language
 }
+{
+       # The name of the test...
+       NAME "Get Default Printer with no default set"
+
+       # The operation to use
+       OPERATION cups-get-default
+       RESOURCE /
+
+       # The attributes to send
+       GROUP operation
+       ATTR charset attributes-charset utf-8
+       ATTR language attributes-natural-language en
+
+       # What statuses are OK?
+       STATUS client-error-not-found
+
+       # What attributes do we expect?
+       EXPECT attributes-charset
+       EXPECT attributes-natural-language
+}
 {
        # The name of the test...
        NAME "Set Default Printer to Test1"
        EXPECT attributes-charset
        EXPECT attributes-natural-language
 }
+{
+       # The name of the test...
+       NAME "Get Default Printer"
+
+       # The operation to use
+       OPERATION cups-get-default
+       RESOURCE /
+
+       # The attributes to send
+       GROUP operation
+       ATTR charset attributes-charset utf-8
+       ATTR language attributes-natural-language en
+
+       # What statuses are OK?
+       STATUS successful-ok
+
+       # What attributes do we expect?
+       EXPECT attributes-charset
+       EXPECT attributes-natural-language
+       EXPECT printer-name
+       EXPECT printer-uri-supported
+}
 {
        # The name of the test...
        NAME "Get IPP/2.x Attributes for Printer Test1"
 }
 
 #
-# End of "$Id: 4.2-cups-printer-ops.test 6379 2007-03-21 14:57:22Z mike $"
+# End of "$Id$"
 #