[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 bfadded8d5d80e08aa5289f9d12158e8ba14b023
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Fri May 3 00:32:43 2024 +0200
* tp/Makefile.tres, tp/t/html_tests.t
(info_js_dir_html_file_js_weblabels_file_undef): add a test with
INFO_JS_DIR set and JS_WEBLABELS_FILE undef.
---
ChangeLog | 6 +
tp/Makefile.tres | 2 +
tp/t/html_tests.t | 2 +
...nfo_js_dir_html_file_js_weblabels_file_undef.pl | 266 +++++++++++++++++++++
.../res_html/chap.html | 42 ++++
.../res_html/index.html | 50 ++++
.../res_html/js/info.css | 0
.../res_html/js/info.js | 0
.../res_html/js/modernizr.js | 0
9 files changed, 368 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index a8af29d37e..01a75cbb8f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-05-02 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Makefile.tres, tp/t/html_tests.t
+ (info_js_dir_html_file_js_weblabels_file_undef): add a test with
+ INFO_JS_DIR set and JS_WEBLABELS_FILE undef.
+
2024-05-02 Patrice Dumas <pertusus@free.fr>
* tp/Makefile.tres, tp/t/html_tests.t (undef_split_and_big_rule): test
diff --git a/tp/Makefile.tres b/tp/Makefile.tres
index 69b04d8502..861fabdaab 100644
--- a/tp/Makefile.tres
+++ b/tp/Makefile.tres
@@ -683,6 +683,8 @@ test_files_generated_list =
$(test_tap_files_generated_list) \
t/results/html_tests/info_js_dir_html.pl \
t/results/html_tests/info_js_dir_html_file.pl \
t/results/html_tests/info_js_dir_html_file/res_html \
+ t/results/html_tests/info_js_dir_html_file_js_weblabels_file_undef.pl \
+ t/results/html_tests/info_js_dir_html_file_js_weblabels_file_undef/res_html \
t/results/html_tests/info_js_dir_html_text.pl \
t/results/html_tests/itemize_arguments.pl \
t/results/html_tests/itemize_arguments/res_html \
diff --git a/tp/t/html_tests.t b/tp/t/html_tests.t
index 7693e3c4cd..9ad695249e 100644
--- a/tp/t/html_tests.t
+++ b/tp/t/html_tests.t
@@ -1499,6 +1499,8 @@ $mathjax_with_texinfo,
{'HTML_MATH' => 'mathjax'}],
['info_js_dir_html_file',
$info_js_dir_test, {}, {'INFO_JS_DIR' => 'js'}],
+['info_js_dir_html_file_js_weblabels_file_undef',
+$info_js_dir_test, {}, {'INFO_JS_DIR' => 'js', 'JS_WEBLABELS_FILE' => undef}],
['css_in_node_redirection_page',
'@node Top
@top top
diff --git
a/tp/t/results/html_tests/info_js_dir_html_file_js_weblabels_file_undef.pl
b/tp/t/results/html_tests/info_js_dir_html_file_js_weblabels_file_undef.pl
new file mode 100644
index 0000000000..b852f095d5
--- /dev/null
+++ b/tp/t/results/html_tests/info_js_dir_html_file_js_weblabels_file_undef.pl
@@ -0,0 +1,266 @@
+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{'info_js_dir_html_file_js_weblabels_file_undef'} = {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'type' => 'preamble_before_content'
+ }
+ ],
+ 'type' => 'before_node_section'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'top'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => {
+ 'text' => '
+'
+ }
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'is_target' => 1,
+ 'normalized' => 'Top'
+ },
+ 'info' => {
+ 'spaces_before_argument' => {
+ 'text' => ' '
+ }
+ },
+ 'source_info' => {
+ 'line_nr' => 1
+ }
+ },
+ {
+ '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',
+ 'extra' => {
+ 'section_number' => '1'
+ },
+ 'info' => {
+ 'spaces_before_argument' => {
+ 'text' => ' '
+ }
+ },
+ 'source_info' => {
+ 'line_nr' => 5
+ }
+ }
+ ],
+ 'type' => 'document_root'
+};
+
+$result_texis{'info_js_dir_html_file_js_weblabels_file_undef'} = '@node top
+@top top
+
+@node chap
+@chapter Chapter
+';
+
+
+$result_texts{'info_js_dir_html_file_js_weblabels_file_undef'} = 'top
+***
+
+1 Chapter
+*********
+';
+
+$result_sectioning{'info_js_dir_html_file_js_weblabels_file_undef'} = {
+ 'extra' => {
+ 'section_childs' => [
+ {
+ 'cmdname' => 'top',
+ 'extra' => {
+ 'associated_node' => {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'normalized' => 'Top'
+ }
+ },
+ 'section_childs' => [
+ {
+ 'cmdname' => 'chapter',
+ 'extra' => {
+ 'associated_node' => {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'normalized' => 'chap'
+ }
+ },
+ '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{'info_js_dir_html_file_js_weblabels_file_undef'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[0]{'extra'}{'section_directions'}{'up'}
=
$result_sectioning{'info_js_dir_html_file_js_weblabels_file_undef'}{'extra'}{'section_childs'}[0];
+$result_sectioning{'info_js_dir_html_file_js_weblabels_file_undef'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[0]{'extra'}{'toplevel_directions'}{'prev'}
=
$result_sectioning{'info_js_dir_html_file_js_weblabels_file_undef'}{'extra'}{'section_childs'}[0];
+$result_sectioning{'info_js_dir_html_file_js_weblabels_file_undef'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[0]{'extra'}{'toplevel_directions'}{'up'}
=
$result_sectioning{'info_js_dir_html_file_js_weblabels_file_undef'}{'extra'}{'section_childs'}[0];
+$result_sectioning{'info_js_dir_html_file_js_weblabels_file_undef'}{'extra'}{'section_childs'}[0]{'extra'}{'sectioning_root'}
= $result_sectioning{'info_js_dir_html_file_js_weblabels_file_undef'};
+
+$result_nodes{'info_js_dir_html_file_js_weblabels_file_undef'} = [
+ {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'associated_section' => {
+ 'cmdname' => 'top',
+ 'extra' => {}
+ },
+ 'node_directions' => {
+ 'next' => {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'associated_section' => {
+ 'cmdname' => 'chapter',
+ 'extra' => {
+ 'section_number' => '1'
+ }
+ },
+ 'node_directions' => {
+ 'prev' => {},
+ 'up' => {}
+ },
+ 'normalized' => 'chap'
+ }
+ }
+ },
+ 'normalized' => 'Top'
+ }
+ },
+ {}
+];
+$result_nodes{'info_js_dir_html_file_js_weblabels_file_undef'}[0]{'extra'}{'node_directions'}{'next'}{'extra'}{'node_directions'}{'prev'}
= $result_nodes{'info_js_dir_html_file_js_weblabels_file_undef'}[0];
+$result_nodes{'info_js_dir_html_file_js_weblabels_file_undef'}[0]{'extra'}{'node_directions'}{'next'}{'extra'}{'node_directions'}{'up'}
= $result_nodes{'info_js_dir_html_file_js_weblabels_file_undef'}[0];
+$result_nodes{'info_js_dir_html_file_js_weblabels_file_undef'}[1] =
$result_nodes{'info_js_dir_html_file_js_weblabels_file_undef'}[0]{'extra'}{'node_directions'}{'next'};
+
+$result_menus{'info_js_dir_html_file_js_weblabels_file_undef'} = [
+ {
+ 'extra' => {
+ 'normalized' => 'Top'
+ }
+ },
+ {
+ 'extra' => {
+ 'normalized' => 'chap'
+ }
+ }
+];
+
+$result_errors{'info_js_dir_html_file_js_weblabels_file_undef'} = [];
+
+
+$result_floats{'info_js_dir_html_file_js_weblabels_file_undef'} = {};
+
+
+1;
diff --git
a/tp/t/results/html_tests/info_js_dir_html_file_js_weblabels_file_undef/res_html/chap.html
b/tp/t/results/html_tests/info_js_dir_html_file_js_weblabels_file_undef/res_html/chap.html
new file mode 100644
index 0000000000..785b7bce0b
--- /dev/null
+++
b/tp/t/results/html_tests/info_js_dir_html_file_js_weblabels_file_undef/res_html/chap.html
@@ -0,0 +1,42 @@
+<!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>chap (top)</title>
+
+<meta name="description" content="chap (top)">
+<meta name="keywords" content="chap (top)">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+<meta name="viewport" content="width=device-width,initial-scale=1">
+
+<link href="index.html" rel="start" title="top">
+<link href="index.html" rel="up" title="top">
+<link href="index.html" rel="prev" title="top">
+<style type="text/css">
+<!--
+a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
+span:hover a.copiable-link {visibility: visible}
+-->
+</style>
+
+<link rel="stylesheet" type="text/css" href="js/info.css">
+<script src="js/modernizr.js" type="text/javascript"></script>
+<script src="js/info.js" type="text/javascript"></script>
+</head>
+
+<body lang="en">
+<div class="chapter-level-extent" id="chap">
+<div class="nav-panel">
+<p>
+Previous: <a href="index.html" accesskey="p" rel="prev">top</a>, Up: <a
href="index.html" accesskey="u" rel="up">top</a> </p>
+</div>
+<hr>
+<h2 class="chapter" id="Chapter"><span>1 Chapter<a class="copiable-link"
href="#Chapter"> ¶</a></span></h2>
+</div>
+
+
+
+</body>
+</html>
diff --git
a/tp/t/results/html_tests/info_js_dir_html_file_js_weblabels_file_undef/res_html/index.html
b/tp/t/results/html_tests/info_js_dir_html_file_js_weblabels_file_undef/res_html/index.html
new file mode 100644
index 0000000000..622abf2dfe
--- /dev/null
+++
b/tp/t/results/html_tests/info_js_dir_html_file_js_weblabels_file_undef/res_html/index.html
@@ -0,0 +1,50 @@
+<!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="#Top" rel="start" title="top">
+<link href="chap.html" rel="next" 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>
+
+<link rel="stylesheet" type="text/css" href="js/info.css">
+<script src="js/modernizr.js" type="text/javascript"></script>
+<script src="js/info.js" type="text/javascript"></script>
+</head>
+
+<body lang="en">
+<div class="top-level-extent" id="Top">
+<div class="nav-panel">
+<p>
+Next: <a href="chap.html" accesskey="n" rel="next">Chapter</a> </p>
+</div>
+<hr>
+<h1 class="top" id="top"><span>top<a class="copiable-link" href="#top">
¶</a></span></h1>
+
+<ul class="mini-toc">
+<li><a href="chap.html" accesskey="1">Chapter</a></li>
+</ul>
+</div>
+<hr>
+<div class="nav-panel">
+<p>
+Next: <a href="chap.html" accesskey="n" rel="next">Chapter</a> </p>
+</div>
+
+
+
+</body>
+</html>
diff --git
a/tp/t/results/html_tests/info_js_dir_html_file_js_weblabels_file_undef/res_html/js/info.css
b/tp/t/results/html_tests/info_js_dir_html_file_js_weblabels_file_undef/res_html/js/info.css
new file mode 100644
index 0000000000..e69de29bb2
diff --git
a/tp/t/results/html_tests/info_js_dir_html_file_js_weblabels_file_undef/res_html/js/info.js
b/tp/t/results/html_tests/info_js_dir_html_file_js_weblabels_file_undef/res_html/js/info.js
new file mode 100644
index 0000000000..e69de29bb2
diff --git
a/tp/t/results/html_tests/info_js_dir_html_file_js_weblabels_file_undef/res_html/js/modernizr.js
b/tp/t/results/html_tests/info_js_dir_html_file_js_weblabels_file_undef/res_html/js/modernizr.js
new file mode 100644
index 0000000000..e69de29bb2