texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]


From: Patrice Dumas
Date: Sun, 5 May 2024 06:49:34 -0400 (EDT)

branch: master
commit 5424220b46250a0970721941ab343fded40c5535
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sun May 5 10:14:07 2024 +0200

    * tp/t/19def.t (@test_defblock): add full_document for LaTeX output
    tests.
---
 ChangeLog                                        | 5 +++++
 tp/t/19def.t                                     | 1 +
 tp/t/results/def/adjacent_defline.pl             | 8 ++++++--
 tp/t/results/def/comment_index_before_defline.pl | 6 +++++-
 tp/t/results/def/defblock_no_defline.pl          | 4 ++++
 tp/t/results/def/defline_no_params.pl            | 6 +++++-
 tp/t/results/def/deftypeline.pl                  | 6 +++++-
 tp/t/results/def/multiple_defline.pl             | 8 ++++++--
 tp/t/results/def/text_block_before_defline.pl    | 6 ++++++
 9 files changed, 43 insertions(+), 7 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 59da1b7f0e..55e4755271 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-05-05  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/t/19def.t (@test_defblock): add full_document for LaTeX output
+       tests.
+
 2024-05-05  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/XS/convert/convert_html.c (prepare_special_units)
diff --git a/tp/t/19def.t b/tp/t/19def.t
index 6ae1b30eda..217d955526 100644
--- a/tp/t/19def.t
+++ b/tp/t/19def.t
@@ -504,6 +504,7 @@ an example
 foreach my $test (@test_defblock) {
   $test->[2]->{'test_formats'} = ['plaintext', 'html',
                                   'latex', 'docbook', 'xml'];
+  $test->[2]->{'full_document'} = 1 unless 
(exists($test->[2]->{'full_document'}));
 }
 
 my @test_invalid = (
diff --git a/tp/t/results/def/adjacent_defline.pl 
b/tp/t/results/def/adjacent_defline.pl
index ccfe95ad08..5840cda536 100644
--- a/tp/t/results/def/adjacent_defline.pl
+++ b/tp/t/results/def/adjacent_defline.pl
@@ -9,6 +9,9 @@ $result_trees{'adjacent_defline'} = {
   'contents' => [
     {
       'contents' => [
+        {
+          'type' => 'preamble_before_content'
+        },
         {
           'args' => [
             {
@@ -250,8 +253,8 @@ $result_trees{'adjacent_defline'} = {
   ],
   'type' => 'document_root'
 };
-$result_trees{'adjacent_defline'}{'contents'}[0]{'contents'}[0]{'contents'}[0]{'extra'}{'def_index_element'}
 = 
$result_trees{'adjacent_defline'}{'contents'}[0]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[2];
-$result_trees{'adjacent_defline'}{'contents'}[0]{'contents'}[0]{'contents'}[1]{'extra'}{'def_index_element'}
 = 
$result_trees{'adjacent_defline'}{'contents'}[0]{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[2];
+$result_trees{'adjacent_defline'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'extra'}{'def_index_element'}
 = 
$result_trees{'adjacent_defline'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[2];
+$result_trees{'adjacent_defline'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'extra'}{'def_index_element'}
 = 
$result_trees{'adjacent_defline'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'args'}[0]{'contents'}[2];
 
 $result_texis{'adjacent_defline'} = '@defblock
 @defline Funoid foo (bar)
@@ -375,6 +378,7 @@ $result_converted{'latex'}->{'adjacent_defline'} = 
'\\documentclass{book}
 \\makeatother
 \\pagestyle{single}%
 
+\\begin{document}
 
 \\noindent\\begin{tabularx}{\\linewidth}{@{}Xr}
 \\rightskip=5em plus 1 fill \\hangindent=2em \\hyphenpenalty=10000
diff --git a/tp/t/results/def/comment_index_before_defline.pl 
b/tp/t/results/def/comment_index_before_defline.pl
index a02cd02f17..bc4a2f8642 100644
--- a/tp/t/results/def/comment_index_before_defline.pl
+++ b/tp/t/results/def/comment_index_before_defline.pl
@@ -9,6 +9,9 @@ $result_trees{'comment_index_before_defline'} = {
   'contents' => [
     {
       'contents' => [
+        {
+          'type' => 'preamble_before_content'
+        },
         {
           'args' => [
             {
@@ -204,7 +207,7 @@ $result_trees{'comment_index_before_defline'} = {
   ],
   'type' => 'document_root'
 };
-$result_trees{'comment_index_before_defline'}{'contents'}[0]{'contents'}[0]{'contents'}[1]{'extra'}{'def_index_element'}
 = 
$result_trees{'comment_index_before_defline'}{'contents'}[0]{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[2];
+$result_trees{'comment_index_before_defline'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'extra'}{'def_index_element'}
 = 
$result_trees{'comment_index_before_defline'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'args'}[0]{'contents'}[2];
 
 $result_texis{'comment_index_before_defline'} = '@defblock
 @c a comment
@@ -347,6 +350,7 @@ 
$result_converted{'latex'}->{'comment_index_before_defline'} = '\\documentclass{
 \\makeatother
 \\pagestyle{single}%
 
+\\begin{document}
 \\begin{quote}
 \\unskip{\\parskip=0pt\\noindent}%
 \\index[cp]{entry@entry}%
diff --git a/tp/t/results/def/defblock_no_defline.pl 
b/tp/t/results/def/defblock_no_defline.pl
index ec42cb3d2f..5894d42a37 100644
--- a/tp/t/results/def/defblock_no_defline.pl
+++ b/tp/t/results/def/defblock_no_defline.pl
@@ -9,6 +9,9 @@ $result_trees{'defblock_no_defline'} = {
   'contents' => [
     {
       'contents' => [
+        {
+          'type' => 'preamble_before_content'
+        },
         {
           'args' => [
             {
@@ -181,6 +184,7 @@ $result_converted{'latex'}->{'defblock_no_defline'} = 
'\\documentclass{book}
 \\makeatother
 \\pagestyle{single}%
 
+\\begin{document}
 \\begin{quote}
 \\unskip{\\parskip=0pt\\noindent}%
 misc text inside
diff --git a/tp/t/results/def/defline_no_params.pl 
b/tp/t/results/def/defline_no_params.pl
index ca4761d109..bfb717d345 100644
--- a/tp/t/results/def/defline_no_params.pl
+++ b/tp/t/results/def/defline_no_params.pl
@@ -9,6 +9,9 @@ $result_trees{'defline_no_params'} = {
   'contents' => [
     {
       'contents' => [
+        {
+          'type' => 'preamble_before_content'
+        },
         {
           'args' => [
             {
@@ -127,7 +130,7 @@ $result_trees{'defline_no_params'} = {
   ],
   'type' => 'document_root'
 };
-$result_trees{'defline_no_params'}{'contents'}[0]{'contents'}[0]{'contents'}[0]{'extra'}{'def_index_element'}
 = 
$result_trees{'defline_no_params'}{'contents'}[0]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[2];
+$result_trees{'defline_no_params'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'extra'}{'def_index_element'}
 = 
$result_trees{'defline_no_params'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[2];
 
 $result_texis{'defline_no_params'} = '@defblock
 @defline Builtin truc
@@ -241,6 +244,7 @@ $result_converted{'latex'}->{'defline_no_params'} = 
'\\documentclass{book}
 \\makeatother
 \\pagestyle{single}%
 
+\\begin{document}
 
 \\noindent\\begin{tabularx}{\\linewidth}{@{}Xr}
 \\rightskip=5em plus 1 fill \\hangindent=2em \\hyphenpenalty=10000
diff --git a/tp/t/results/def/deftypeline.pl b/tp/t/results/def/deftypeline.pl
index f82bd0d167..a474c2555b 100644
--- a/tp/t/results/def/deftypeline.pl
+++ b/tp/t/results/def/deftypeline.pl
@@ -9,6 +9,9 @@ $result_trees{'deftypeline'} = {
   'contents' => [
     {
       'contents' => [
+        {
+          'type' => 'preamble_before_content'
+        },
         {
           'args' => [
             {
@@ -258,7 +261,7 @@ $result_trees{'deftypeline'} = {
   ],
   'type' => 'document_root'
 };
-$result_trees{'deftypeline'}{'contents'}[0]{'contents'}[0]{'contents'}[0]{'extra'}{'def_index_element'}
 = 
$result_trees{'deftypeline'}{'contents'}[0]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[4];
+$result_trees{'deftypeline'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'extra'}{'def_index_element'}
 = 
$result_trees{'deftypeline'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[4];
 
 $result_texis{'deftypeline'} = '@defblock
 @deftypeline Function {long int} foo (int @var{bar}, int @var{baz})
@@ -375,6 +378,7 @@ $result_converted{'latex'}->{'deftypeline'} = 
'\\documentclass{book}
 \\makeatother
 \\pagestyle{single}%
 
+\\begin{document}
 
 \\noindent\\begin{tabularx}{\\linewidth}{@{}Xr}
 \\rightskip=5em plus 1 fill \\hangindent=2em \\hyphenpenalty=10000
diff --git a/tp/t/results/def/multiple_defline.pl 
b/tp/t/results/def/multiple_defline.pl
index 82b348b27c..19121bc82c 100644
--- a/tp/t/results/def/multiple_defline.pl
+++ b/tp/t/results/def/multiple_defline.pl
@@ -9,6 +9,9 @@ $result_trees{'multiple_defline'} = {
   'contents' => [
     {
       'contents' => [
+        {
+          'type' => 'preamble_before_content'
+        },
         {
           'args' => [
             {
@@ -272,8 +275,8 @@ $result_trees{'multiple_defline'} = {
   ],
   'type' => 'document_root'
 };
-$result_trees{'multiple_defline'}{'contents'}[0]{'contents'}[0]{'contents'}[0]{'extra'}{'def_index_element'}
 = 
$result_trees{'multiple_defline'}{'contents'}[0]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[2];
-$result_trees{'multiple_defline'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'extra'}{'def_index_element'}
 = 
$result_trees{'multiple_defline'}{'contents'}[0]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[2];
+$result_trees{'multiple_defline'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'extra'}{'def_index_element'}
 = 
$result_trees{'multiple_defline'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[2];
+$result_trees{'multiple_defline'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'extra'}{'def_index_element'}
 = 
$result_trees{'multiple_defline'}{'contents'}[0]{'contents'}[1]{'contents'}[2]{'args'}[0]{'contents'}[2];
 
 $result_texis{'multiple_defline'} = '@defblock
 @defline Funoid foo (bar)
@@ -409,6 +412,7 @@ $result_converted{'latex'}->{'multiple_defline'} = 
'\\documentclass{book}
 \\makeatother
 \\pagestyle{single}%
 
+\\begin{document}
 
 \\noindent\\begin{tabularx}{\\linewidth}{@{}Xr}
 \\rightskip=5em plus 1 fill \\hangindent=2em \\hyphenpenalty=10000
diff --git a/tp/t/results/def/text_block_before_defline.pl 
b/tp/t/results/def/text_block_before_defline.pl
index 82a1169f2b..417b16d09a 100644
--- a/tp/t/results/def/text_block_before_defline.pl
+++ b/tp/t/results/def/text_block_before_defline.pl
@@ -8,6 +8,11 @@ use utf8;
 $result_trees{'text_block_before_defline'} = {
   'contents' => [
     {
+      'contents' => [
+        {
+          'type' => 'preamble_before_content'
+        }
+      ],
       'type' => 'before_node_section'
     },
     {
@@ -791,6 +796,7 @@ $result_converted{'latex'}->{'text_block_before_defline'} = 
'\\documentclass{boo
 \\makeatother
 \\pagestyle{single}%
 
+\\begin{document}
 \\label{anchor:Top}%
 \\chapter{{Chap}}
 \\label{anchor:chapt}%



reply via email to

[Prev in Thread] Current Thread [Next in Thread]