texinfo-commits
[Top][All Lists]
Advanced

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

[no subject]


From: Patrice Dumas
Date: Thu, 2 May 2024 18:44:09 -0400 (EDT)

branch: master
commit c6cc9451013e2559356ea9e9fd4551e300de1150
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Fri May 3 00:22:32 2024 +0200

    * tp/Makefile.tres, tp/t/html_tests.t (undef_split_and_big_rule): test
    with SPLIT and BIG_RULE undef.
---
 ChangeLog                                          |   5 +
 tp/Makefile.tres                                   |   2 +
 tp/t/html_tests.t                                  |  12 +
 .../results/html_tests/undef_split_and_big_rule.pl | 328 +++++++++++++++++++++
 .../res_html/undef_split_and_big_rule.html         |  52 ++++
 5 files changed, 399 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 6836161d5c..a8af29d37e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-05-02  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Makefile.tres, tp/t/html_tests.t (undef_split_and_big_rule): test
+       with SPLIT and BIG_RULE undef.
+
 2024-05-02  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/Convert/DocBook.pm (converter_initialize): set
diff --git a/tp/Makefile.tres b/tp/Makefile.tres
index ec3aaca7e4..69b04d8502 100644
--- a/tp/Makefile.tres
+++ b/tp/Makefile.tres
@@ -777,6 +777,8 @@ test_files_generated_list = 
$(test_tap_files_generated_list) \
   t/results/html_tests/top_node_up_implicit_no_nodes.pl \
   t/results/html_tests/transliterated_names_conflicts.pl \
   t/results/html_tests/transliterated_names_conflicts/res_html \
+  t/results/html_tests/undef_split_and_big_rule.pl \
+  t/results/html_tests/undef_split_and_big_rule/res_html \
   t/results/html_tests/uref_accented_letter.pl \
   t/results/html_tests/uref_accented_letter_ascii.pl \
   t/results/html_tests/uref_accented_letter_latin1.pl \
diff --git a/tp/t/html_tests.t b/tp/t/html_tests.t
index a2bfb88dcf..7693e3c4cd 100644
--- a/tp/t/html_tests.t
+++ b/tp/t/html_tests.t
@@ -1001,6 +1001,18 @@ my @file_tests = (
 @node chap
 @chapter
 ', {}, {'SPLIT' => 'chapter'}],
+# A big rule would be between chapter and section if BIG_RULE was not undef
+['undef_split_and_big_rule',
+'node Top
+@top top
+
+@node chap
+@chapter Chapter
+
+@node sec
+@section Sec
+', {}, {'SPLIT' => undef, 'BIG_RULE' => undef}
+],
 # the chapter file is named '.html', which is ok, but no file may be better
 ['empty_chapter_in_html_title_no_node_no_use_nodes',
 '@node Top
diff --git a/tp/t/results/html_tests/undef_split_and_big_rule.pl 
b/tp/t/results/html_tests/undef_split_and_big_rule.pl
new file mode 100644
index 0000000000..98bf41ccb2
--- /dev/null
+++ b/tp/t/results/html_tests/undef_split_and_big_rule.pl
@@ -0,0 +1,328 @@
+use vars qw(%result_texis %result_texts %result_trees %result_errors 
+   %result_indices %result_sectioning %result_nodes %result_menus
+   %result_floats %result_converted %result_converted_errors 
+   %result_elements %result_directions_text %result_indices_sort_strings);
+
+use utf8;
+
+$result_trees{'undef_split_and_big_rule'} = {
+  'contents' => [
+    {
+      'contents' => [
+        {
+          'type' => 'preamble_before_content'
+        },
+        {
+          'contents' => [
+            {
+              'text' => 'node Top
+'
+            }
+          ],
+          'type' => 'paragraph'
+        }
+      ],
+      'type' => 'before_node_section'
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'top'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'top',
+      'contents' => [
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {},
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'line_nr' => 2
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'chap'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'extra' => {
+        'is_target' => 1,
+        'normalized' => 'chap'
+      },
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'line_nr' => 4
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'Chapter'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'chapter',
+      'contents' => [
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {
+        'section_number' => '1'
+      },
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'line_nr' => 5
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'sec'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'extra' => {
+        'is_target' => 1,
+        'normalized' => 'sec'
+      },
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'line_nr' => 7
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'Sec'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'section',
+      'extra' => {
+        'section_number' => '1.1'
+      },
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'line_nr' => 8
+      }
+    }
+  ],
+  'type' => 'document_root'
+};
+
+$result_texis{'undef_split_and_big_rule'} = 'node Top
+@top top
+
+@node chap
+@chapter Chapter
+
+@node sec
+@section Sec
+';
+
+
+$result_texts{'undef_split_and_big_rule'} = 'node Top
+top
+***
+
+1 Chapter
+*********
+
+1.1 Sec
+=======
+';
+
+$result_sectioning{'undef_split_and_big_rule'} = {
+  'extra' => {
+    'section_childs' => [
+      {
+        'cmdname' => 'top',
+        'extra' => {
+          'section_childs' => [
+            {
+              'cmdname' => 'chapter',
+              'extra' => {
+                'associated_node' => {
+                  'cmdname' => 'node',
+                  'extra' => {
+                    'normalized' => 'chap'
+                  }
+                },
+                'section_childs' => [
+                  {
+                    'cmdname' => 'section',
+                    'extra' => {
+                      'associated_node' => {
+                        'cmdname' => 'node',
+                        'extra' => {
+                          'normalized' => 'sec'
+                        }
+                      },
+                      'section_directions' => {
+                        'up' => {}
+                      },
+                      'section_level' => 2,
+                      'section_number' => '1.1'
+                    }
+                  }
+                ],
+                'section_directions' => {
+                  'up' => {}
+                },
+                'section_level' => 1,
+                'section_number' => '1',
+                'toplevel_directions' => {
+                  'prev' => {},
+                  'up' => {}
+                }
+              }
+            }
+          ],
+          'section_level' => 0,
+          'sectioning_root' => {},
+          'toplevel_directions' => {}
+        }
+      }
+    ],
+    'section_level' => -1
+  }
+};
+$result_sectioning{'undef_split_and_big_rule'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[0]{'extra'}{'section_directions'}{'up'}
 = 
$result_sectioning{'undef_split_and_big_rule'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[0];
+$result_sectioning{'undef_split_and_big_rule'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[0]{'extra'}{'section_directions'}{'up'}
 = $result_sectioning{'undef_split_and_big_rule'}{'extra'}{'section_childs'}[0];
+$result_sectioning{'undef_split_and_big_rule'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[0]{'extra'}{'toplevel_directions'}{'prev'}
 = $result_sectioning{'undef_split_and_big_rule'}{'extra'}{'section_childs'}[0];
+$result_sectioning{'undef_split_and_big_rule'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[0]{'extra'}{'toplevel_directions'}{'up'}
 = $result_sectioning{'undef_split_and_big_rule'}{'extra'}{'section_childs'}[0];
+$result_sectioning{'undef_split_and_big_rule'}{'extra'}{'section_childs'}[0]{'extra'}{'sectioning_root'}
 = $result_sectioning{'undef_split_and_big_rule'};
+
+$result_nodes{'undef_split_and_big_rule'} = [
+  {
+    'cmdname' => 'node',
+    'extra' => {
+      'associated_section' => {
+        'cmdname' => 'chapter',
+        'extra' => {
+          'section_number' => '1'
+        }
+      },
+      'normalized' => 'chap'
+    }
+  },
+  {
+    'cmdname' => 'node',
+    'extra' => {
+      'associated_section' => {
+        'cmdname' => 'section',
+        'extra' => {
+          'section_number' => '1.1'
+        }
+      },
+      'node_directions' => {
+        'up' => {}
+      },
+      'normalized' => 'sec'
+    }
+  }
+];
+$result_nodes{'undef_split_and_big_rule'}[1]{'extra'}{'node_directions'}{'up'} 
= $result_nodes{'undef_split_and_big_rule'}[0];
+
+$result_menus{'undef_split_and_big_rule'} = [
+  {
+    'extra' => {
+      'normalized' => 'chap'
+    }
+  },
+  {
+    'extra' => {
+      'normalized' => 'sec'
+    }
+  }
+];
+
+$result_errors{'undef_split_and_big_rule'} = [];
+
+
+$result_floats{'undef_split_and_big_rule'} = {};
+
+
+1;
diff --git 
a/tp/t/results/html_tests/undef_split_and_big_rule/res_html/undef_split_and_big_rule.html
 
b/tp/t/results/html_tests/undef_split_and_big_rule/res_html/undef_split_and_big_rule.html
new file mode 100644
index 0000000000..c5ea501acd
--- /dev/null
+++ 
b/tp/t/results/html_tests/undef_split_and_big_rule/res_html/undef_split_and_big_rule.html
@@ -0,0 +1,52 @@
+<!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>top</title>
+
+<meta name="description" content="top">
+<meta name="keywords" content="top">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+<meta name="viewport" content="width=device-width,initial-scale=1">
+
+<link href="#chap" rel="start" title="chap">
+<style type="text/css">
+<!--
+a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
+span:hover a.copiable-link {visibility: visible}
+-->
+</style>
+
+
+</head>
+
+<body lang="en">
+<p>node Top
+</p><div class="top-level-extent" id="top">
+<h1 class="top"><span>top<a class="copiable-link" href="#top"> 
&para;</a></span></h1>
+
+<ul class="mini-toc">
+<li><a href="#chap" accesskey="1">Chapter</a></li>
+</ul>
+<div class="chapter-level-extent" id="chap">
+<h2 class="chapter" id="Chapter"><span>1 Chapter<a class="copiable-link" 
href="#Chapter"> &para;</a></span></h2>
+
+<ul class="mini-toc">
+<li><a href="#sec" accesskey="1">Sec</a></li>
+</ul>
+<div class="section-level-extent" id="sec">
+<div class="nav-panel">
+<p>
+Up: <a href="#chap" accesskey="u" rel="up">Chapter</a> &nbsp; </p>
+</div>
+<h3 class="section" id="Sec"><span>1.1 Sec<a class="copiable-link" 
href="#Sec"> &para;</a></span></h3>
+</div>
+</div>
+</div>
+
+
+
+</body>
+</html>



reply via email to

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