aboutsummaryrefslogtreecommitdiffstats
path: root/qpdf/qtest/qpdf-json.test
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2024-02-16 15:09:28 +0100
committerm-holger <m-holger@kubitscheck.org>2024-02-16 15:09:28 +0100
commitf0bc2f11ef4f096b1338dd5fc91e3c4d88b3b9e0 (patch)
tree23967df70526644adcdd8aa7bac79c8a653f22c5 /qpdf/qtest/qpdf-json.test
parentc06653c3ab1ec3241b66e708750813a380378fad (diff)
downloadqpdf-f0bc2f11ef4f096b1338dd5fc91e3c4d88b3b9e0.tar.zst
Expose QPDFObjectHandle::writeJSON
Diffstat (limited to 'qpdf/qtest/qpdf-json.test')
-rw-r--r--qpdf/qtest/qpdf-json.test7
1 files changed, 5 insertions, 2 deletions
diff --git a/qpdf/qtest/qpdf-json.test b/qpdf/qtest/qpdf-json.test
index defabbe7..299bcd7e 100644
--- a/qpdf/qtest/qpdf-json.test
+++ b/qpdf/qtest/qpdf-json.test
@@ -350,7 +350,7 @@ $td->runtest("check C API write to JSON stream",
# (using #xx) would generate invalid JSON, even though qpdf's own JSON
# parser would accept it. Also, the JSON spec allows real numbers in
# scientific notation, but the PDF spec does not.
-$n_tests += 6;
+$n_tests += 7;
$td->runtest("handle binary names",
{$td->COMMAND =>
"qpdf --json-output weird-tokens.pdf a.json"},
@@ -379,6 +379,9 @@ $td->runtest("check json",
{$td->FILE => "a.json"},
{$td->FILE => "weird-tokens-v1.json"},
$td->NORMALIZE_NEWLINES);
-
+$td->runtest("write JSON to pipeline",
+ {$td->COMMAND => "test_driver 98 minimal.pdf ''"},
+ {$td->STRING => "test 98 done\n", $td->EXIT_STATUS => 0},
+ $td->NORMALIZE_NEWLINES);
cleanup();
$td->report($n_tests);