texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: * tp/t/19def.t: move all_empty_def to @test_info


From: Patrice Dumas
Subject: branch master updated: * tp/t/19def.t: move all_empty_def to @test_info and format to xml @test_info tests.
Date: Tue, 06 Dec 2022 18:24:00 -0500

This is an automated email from the git hooks/post-receive script.

pertusus pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new 5920edd60e * tp/t/19def.t: move all_empty_def to @test_info and format 
to xml @test_info tests.
5920edd60e is described below

commit 5920edd60e0bcb739e65bb7f8c02deed7fb771aa
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Wed Dec 7 00:23:50 2022 +0100

    * tp/t/19def.t: move all_empty_def to @test_info and format to xml
    @test_info tests.
---
 ChangeLog                                  |   5 ++
 tp/t/19def.t                               |  58 ++++++-------
 tp/t/results/def/all_empty_def.pl          | 125 +++++++++++++++++++++++++++++
 tp/t/results/def/space_in_def_for_index.pl |  10 +++
 4 files changed, 169 insertions(+), 29 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 0f0b1a8a57..6f2468d005 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2022-12-06  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/t/19def.t: move all_empty_def to @test_info and format to xml
+       @test_info tests.
+
 2022-12-06  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/ParserNonXS.pm (_end_line_def_line),
diff --git a/tp/t/19def.t b/tp/t/19def.t
index c6427074da..fc90014497 100644
--- a/tp/t/19def.t
+++ b/tp/t/19def.t
@@ -386,6 +386,34 @@ my @test_info = (
 
 @printindex fn
 '],
+['all_empty_def',
+'@deffn
+@end deffn
+
+@defvr
+@end defvr
+
+@deftypefn
+@end deftypefn
+
+@deftypeop
+@end deftypeop
+
+@deftypevr
+@end deftypevr
+
+@defcv
+@end defcv
+
+@deftypecv
+@end deftypecv
+
+@defop
+@end defop
+
+@deftp
+@end deftp
+'],
 );
 
 my @test_invalid = (
@@ -500,34 +528,6 @@ deffn with @}
 @deffnx{} {}
 @end deffn
 '],
-['all_empty_def',
-'@deffn
-@end deffn
-
-@defvr
-@end defvr
-
-@deftypefn
-@end deftypefn
-
-@deftypeop
-@end deftypeop
-
-@deftypevr
-@end deftypevr
-
-@defcv
-@end defcv
-
-@deftypecv
-@end deftypecv
-
-@defop
-@end defop
-
-@deftp
-@end deftp
-'],
 ['empty_deftypeop_name',
 '@deftypeop Command@code{com} {Window@code{int}} expose@var{exp}
 @end deftypeop
@@ -601,7 +601,7 @@ foreach my $test (@test_cases) {
 }
 
 foreach my $test (@test_info) {
-  $test->[2]->{'test_formats'} = ['info', 'html'];
+  $test->[2]->{'test_formats'} = ['info', 'html', 'xml'];
 }
 
 run_all('def', [@test_cases, @test_info, @test_invalid, @test_printindex]);
diff --git a/tp/t/results/def/all_empty_def.pl 
b/tp/t/results/def/all_empty_def.pl
index ad0b0b1fd8..14b9ab85ff 100644
--- a/tp/t/results/def/all_empty_def.pl
+++ b/tp/t/results/def/all_empty_def.pl
@@ -714,4 +714,129 @@ $result_errors{'all_empty_def'} = [
 $result_floats{'all_empty_def'} = {};
 
 
+
+$result_converted{'info'}->{'all_empty_def'} = 'This is , produced from .
+
+
+
+Tag Table:
+
+End Tag Table
+
+
+Local Variables:
+coding: utf-8
+End:
+';
+
+$result_converted_errors{'info'}->{'all_empty_def'} = [
+  {
+    'error_line' => 'warning: document without nodes
+',
+    'text' => 'document without nodes',
+    'type' => 'warning'
+  }
+];
+
+
+
+$result_converted{'html'}->{'all_empty_def'} = '<!DOCTYPE html>
+<html>
+<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<title>Untitled Document</title>
+
+<meta name="description" content="Untitled Document">
+<meta name="keywords" content="Untitled Document">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+<meta name="viewport" content="width=device-width,initial-scale=1">
+
+
+
+</head>
+
+<body lang="en">
+<dl class="first-deffn">
+<dt class="deffn"></dt>
+</dl>
+
+<dl class="first-defvr">
+<dt class="defvr"></dt>
+</dl>
+
+<dl class="first-deftypefn">
+<dt class="deftypefn"></dt>
+</dl>
+
+<dl class="first-deftypeop">
+<dt class="deftypeop"></dt>
+</dl>
+
+<dl class="first-deftypevr">
+<dt class="deftypevr"></dt>
+</dl>
+
+<dl class="first-defcv">
+<dt class="defcv"></dt>
+</dl>
+
+<dl class="first-deftypecv">
+<dt class="deftypecv"></dt>
+</dl>
+
+<dl class="first-defop">
+<dt class="defop"></dt>
+</dl>
+
+<dl class="first-deftp">
+<dt class="deftp"></dt>
+</dl>
+
+
+
+</body>
+</html>
+';
+
+$result_converted_errors{'html'}->{'all_empty_def'} = [
+  {
+    'error_line' => 'warning: must specify a title with a title command or @top
+',
+    'text' => 'must specify a title with a title command or @top',
+    'type' => 'warning'
+  }
+];
+
+
+
+$result_converted{'xml'}->{'all_empty_def'} = '<deffn endspaces=" 
"><definitionterm></definitionterm>
+</deffn>
+
+<defvr endspaces=" "><definitionterm></definitionterm>
+</defvr>
+
+<deftypefn endspaces=" "><definitionterm></definitionterm>
+</deftypefn>
+
+<deftypeop endspaces=" "><definitionterm></definitionterm>
+</deftypeop>
+
+<deftypevr endspaces=" "><definitionterm></definitionterm>
+</deftypevr>
+
+<defcv endspaces=" "><definitionterm></definitionterm>
+</defcv>
+
+<deftypecv endspaces=" "><definitionterm></definitionterm>
+</deftypecv>
+
+<defop endspaces=" "><definitionterm></definitionterm>
+</defop>
+
+<deftp endspaces=" "><definitionterm></definitionterm>
+</deftp>
+';
+
 1;
diff --git a/tp/t/results/def/space_in_def_for_index.pl 
b/tp/t/results/def/space_in_def_for_index.pl
index da949121cd..f518bcaac7 100644
--- a/tp/t/results/def/space_in_def_for_index.pl
+++ b/tp/t/results/def/space_in_def_for_index.pl
@@ -535,4 +535,14 @@ 
$result_converted_errors{'html'}->{'space_in_def_for_index'} = [
 ];
 
 
+
+$result_converted{'xml'}->{'space_in_def_for_index'} = '<node name="Top" 
spaces=" "><nodename>Top</nodename></node>
+
+<deffn spaces=" " endspaces=" "><definitionterm><indexterm index="fn" 
number="1">name</indexterm><defcategory bracketed="on" spaces=" " 
trailingspaces=" ">Category</defcategory> <deffunction bracketed="on" spaces=" 
" trailingspaces=" ">name</deffunction> <defparam bracketed="on" spaces=" " 
trailingspaces=" ">argument</defparam> 
<defparam>argument2...</defparam></definitionterm>
+<deffnx spaces=" "><definitionterm><indexterm index="fn" 
number="2">AAA2</indexterm><defcategory bracketed="on">AAA1</defcategory> 
<deffunction bracketed="on">AAA2</deffunction> 
<defparam>arg3</defparam></definitionterm></deffnx>
+</deffn>
+
+<printindex spaces=" " value="fn" line="fn"></printindex>
+';
+
 1;



reply via email to

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