diff options
author | Paul Wicking <paul.wicking@qt.io> | 2022-11-03 18:09:30 +0100 |
---|---|---|
committer | Paul Wicking <paul.wicking@qt.io> | 2022-11-03 18:21:01 +0100 |
commit | 54d0ab30c6ddd903cec598c9aabbd6680fe1f224 (patch) | |
tree | 2960d308cf27ebc0978378293c1723bc7e30dd1c /tests | |
parent | 75831eef6d1147a29817309f9c239a1a6fe9086e (diff) | |
download | qttools-54d0ab30c6ddd903cec598c9aabbd6680fe1f224.tar.gz |
QDoc tests: Add missing output
Amend 75831eef6d1147a29817309f9c239a1a6fe9086e
by adding test output I forgot for DocBook and Webxml.
Change-Id: Ic3b898ba2733b43d3fa3a82879480e8ed423e63d
Reviewed-by: Luca Di Sera <luca.disera@qt.io>
Diffstat (limited to 'tests')
3 files changed, 114 insertions, 0 deletions
diff --git a/tests/auto/qdoc/generatedoutput/expected_output/docbook/qdoctests-qdocmanuallikefileoutput.xml b/tests/auto/qdoc/generatedoutput/expected_output/docbook/qdoctests-qdocmanuallikefileoutput.xml new file mode 100644 index 000000000..5840f137d --- /dev/null +++ b/tests/auto/qdoc/generatedoutput/expected_output/docbook/qdoctests-qdocmanuallikefileoutput.xml @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="UTF-8"?> +<db:article xmlns:db="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.2" xml:lang="en"> +<db:info> +<db:title>Document Navigation</db:title> +<db:productname>OutputFromQDocFiles</db:productname> +<db:edition>OutputFromQDocFiles - A test project for QDoc build artifacts</db:edition> +<db:titleabbrev>A test project for QDoc build artifacts</db:titleabbrev> +<db:abstract> +<db:para>A test project for QDoc build artifacts.</db:para></db:abstract> +</db:info> +<db:para>The navigation commands...</db:para> +<db:blockquote> <table border="0" cellpadding="0" cellspacing="5" width="100%"> + + <tr> + <p> + [Previous: <a href="15-qdoc-commands-navigation.html#deadlink"> + Basic Qt</a>] + [<a href="15-qdoc-commands-navigation.html#deadlink">Contents</a>] + [Next: <a href="15-qdoc-commands-navigation.html#deadlink"> + Creating Dialogs</a>] + </p> + + <h1 align="center">Getting Started<br /></h1> + + <p> + This chapter shows how to combine basic C++ with the + functionality provided by Qt to create a few small graphical + interface (GUI) applications. + </p> + + <p> + [Previous: <a href="15-qdoc-commands-navigation.html#deadlink"> + Basic Qt</a>] + [<a href="15-qdoc-commands-navigation.html#deadlink">Contents</a>] + [Next: <a href="15-qdoc-commands-navigation.html#deadlink"> + Creating Dialogs</a>] + </p> + + </table> + </db:blockquote> +<db:programlisting language="cpp">&lt;head&gt; + ... + &lt;link rel=&quot;start&quot; href=&quot;basicqt.html&quot; /&gt; + ... +&lt;/head&gt; +</db:programlisting> +<db:section xml:id="commands"> +<db:title>Commands</db:title> +<db:anchor xml:id="previouspage-command"/> +<db:section xml:id="previouspage"> +<db:title>\previouspage</db:title> +<db:para>The \previouspage command...</db:para> +</db:section> +</db:section> +</db:article> diff --git a/tests/auto/qdoc/generatedoutput/expected_output/html/qdoctests-qdocmanuallikefileoutput.webxml b/tests/auto/qdoc/generatedoutput/expected_output/html/qdoctests-qdocmanuallikefileoutput.webxml new file mode 100644 index 000000000..4502dcf7f --- /dev/null +++ b/tests/auto/qdoc/generatedoutput/expected_output/html/qdoctests-qdocmanuallikefileoutput.webxml @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="UTF-8"?> +<WebXML> + <document> + <page name="qdoctests-qdocmanuallikefileoutput.html" href="qdoctests-qdocmanuallikefileoutput.html" status="active" location="qdoctests-outputfromqdocmanuallikefiles.qdoc" documented="true" subtype="page" title="Document Navigation" fulltitle="Document Navigation" subtitle=""> + <target name="previouspage-command"/> + <contents name="commands" title="Commands" level="1"/> + <contents name="previouspage" title="\previouspage" level="2"/> + <description> + <para>The navigation commands...</para> + <quote> + <raw format="HTML"> <table border="0" cellpadding="0" cellspacing="5" width="100%"> + + <tr> + <p> + [Previous: <a href="15-qdoc-commands-navigation.html#deadlink"> + Basic Qt</a>] + [<a href="15-qdoc-commands-navigation.html#deadlink">Contents</a>] + [Next: <a href="15-qdoc-commands-navigation.html#deadlink"> + Creating Dialogs</a>] + </p> + + <h1 align="center">Getting Started<br /></h1> + + <p> + This chapter shows how to combine basic C++ with the + functionality provided by Qt to create a few small graphical + interface (GUI) applications. + </p> + + <p> + [Previous: <a href="15-qdoc-commands-navigation.html#deadlink"> + Basic Qt</a>] + [<a href="15-qdoc-commands-navigation.html#deadlink">Contents</a>] + [Next: <a href="15-qdoc-commands-navigation.html#deadlink"> + Creating Dialogs</a>] + </p> + + </table> + </raw> + </quote> + <code><head> + ... + <link rel="start" href="basicqt.html" /> + ... +</head></code> + <section id="commands"> + <heading level="1">Commands</heading> + <target name="previouspage-command"/> + </section> + <section id="previouspage"> + <heading level="2">\previouspage</heading> + <para>The \previouspage command...</para> + </section> + </description> + </page> + </document> +</WebXML> diff --git a/tests/auto/qdoc/generatedoutput/tst_generatedoutput.cpp b/tests/auto/qdoc/generatedoutput/tst_generatedoutput.cpp index b377dadf1..971498345 100644 --- a/tests/auto/qdoc/generatedoutput/tst_generatedoutput.cpp +++ b/tests/auto/qdoc/generatedoutput/tst_generatedoutput.cpp @@ -261,6 +261,7 @@ void tst_generatedOutput::webXmlFromQDocFile() { testAndCompare("testdata/configs/webxml_test.qdocconf", "html/qdoctests-qdocfileoutput.webxml " + "html/qdoctests-qdocmanuallikefileoutput.webxml " "html/qdoctests-qdocfileoutput-linking.webxml " "html/qdoctests-qdocfileoutput-exhaustive.webxml"); } @@ -294,6 +295,7 @@ void tst_generatedOutput::docBookFromQDocFile() { testAndCompare("testdata/configs/docbook_test.qdocconf", "docbook/qdoctests-qdocfileoutput.xml " + "docbook/qdoctests-qdocmanuallikefileoutput.xml " "docbook/qdoctests-qdocfileoutput-linking.xml " "docbook/qdoctests-qdocfileoutput-exhaustive.xml"); } |