-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance WITH-[ALL-]CONTENT support to validate IPP, PDF, and .strings…
… files (Issue #87) Strip HTML target ("...#target") from URIs when doing validation. Update man pages. Add resource validation test file.
- Loading branch information
1 parent
15e3e29
commit 9362942
Showing
8 changed files
with
145 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Validate printer resources | ||
{ | ||
NAME "Validate Printer Resources" | ||
OPERATION Get-Printer-Attributes | ||
GROUP operation-attributes-tag | ||
ATTR charset attributes-charset utf-8 | ||
ATTR language attributes-natural-language en | ||
ATTR uri printer-uri $uri | ||
ATTR name requesting-user-name $user | ||
|
||
STATUS successful-ok | ||
|
||
EXPECT ?printer-charge-info-uri OF-TYPE uri IN-GROUP printer-attributes-tag COUNT 1 WITH-CONTENT valid | ||
|
||
EXPECT printer-icc-profiles OF-TYPE collection IN-GROUP printer-attributes-tag DEFINE-MATCH PRINTER_HAS_ICC_PROFILES | ||
EXPECT printer-icc-profiles/profile-uri OF-TYPE uri COUNT 1 WITH-CONTENT valid IF-DEFINED PRINTER_HAS_ICC_PROFILES | ||
|
||
EXPECT ?printer-icons OF-TYPE uri IN-GROUP printer-attributes-tag WITH-ALL-CONTENT valid-icon | ||
|
||
EXPECT ?printer-more-info OF-TYPE uri IN-GROUP printer-attributes-tag COUNT 1 WITH-CONTENT valid | ||
|
||
EXPECT ?printer-more-info-manufacturer OF-TYPE uri IN-GROUP printer-attributes-tag COUNT 1 WITH-CONTENT valid | ||
|
||
EXPECT ?printer-privacy-policy-uri OF-TYPE uri IN-GROUP printer-attributes-tag COUNT 1 WITH-CONTENT valid | ||
|
||
EXPECT ?printer-static-resource-directory-uri OF-TYPE uri IN-GROUP printer-attributes-tag COUNT 1 WITH-CONTENT valid | ||
|
||
EXPECT ?printer-strings-uri OF-TYPE uri IN-GROUP printer-attributes-tag COUNT 1 WITH-CONTENT valid | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule pdfio
updated
22 files
+0 −2 | .github/workflows/build.yml | |
+24 −39 | CHANGES.md | |
+12 −12 | configure | |
+1 −1 | configure.ac | |
+2 −121 | doc/pdfio.3 | |
+2 −119 | doc/pdfio.html | |
+1 −131 | doc/pdfio.md | |
+0 −3 | pdfio-array.c | |
+1 −1 | pdfio-content.c | |
+0 −3 | pdfio-dict.c | |
+1 −21 | pdfio-file.c | |
+6 −4 | pdfio-stream.c | |
+0 −3 | pdfio-value.c | |
+1 −1 | pdfio.h | |
+1 −7 | pdfio1.def | |
+2 −2 | pdfio_native.nuspec | |
+1 −1 | pdfio_native.redist.nuspec | |
+0 −16 | runtests.bat | |
+12 −45 | testpdfio.c | |
+1 −2 | testttf.c | |
+15 −104 | ttf.c | |
+8 −8 | ttf.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters