[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[6668] lowered heading test
From: |
Gavin D. Smith |
Subject: |
[6668] lowered heading test |
Date: |
Fri, 02 Oct 2015 15:31:49 +0000 |
Revision: 6668
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=6668
Author: gavin
Date: 2015-10-02 15:31:48 +0000 (Fri, 02 Oct 2015)
Log Message:
-----------
lowered heading test
Modified Paths:
--------------
trunk/ChangeLog
trunk/tp/t/30sectioning.t
Added Paths:
-----------
trunk/tp/t/results/sectioning/loweredheading.pl
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2015-10-02 15:03:39 UTC (rev 6667)
+++ trunk/ChangeLog 2015-10-02 15:31:48 UTC (rev 6668)
@@ -1,5 +1,9 @@
2015-10-02 Gavin Smith <address@hidden>
+ * tp/t/30section.t: Add new test 'loweredheading'.
+
+2015-10-02 Gavin Smith <address@hidden>
+
* NEWS: Mention the last @lowersections fix, and mention macro
changes in texinfo.tex (newlines in a macro argument, relevant
for gcc manual).
Modified: trunk/tp/t/30sectioning.t
===================================================================
--- trunk/tp/t/30sectioning.t 2015-10-02 15:03:39 UTC (rev 6667)
+++ trunk/tp/t/30sectioning.t 2015-10-02 15:31:48 UTC (rev 6668)
@@ -1665,6 +1665,12 @@
@contents
@bye
'],
+['loweredheading',
+'@lowersections
address@hidden Foo
address@hidden Bar
address@hidden
+'],
['menutextorder',
'@menu
* foo::
Added: trunk/tp/t/results/sectioning/loweredheading.pl
===================================================================
--- trunk/tp/t/results/sectioning/loweredheading.pl
(rev 0)
+++ trunk/tp/t/results/sectioning/loweredheading.pl 2015-10-02 15:31:48 UTC
(rev 6668)
@@ -0,0 +1,186 @@
+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);
+
+use utf8;
+
+$result_trees{'loweredheading'} = {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'lowersections',
+ 'parent' => {}
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'text_root'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'extra' => {
+ 'command' => {}
+ },
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'empty_spaces_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'Foo'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'spaces_at_end'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'misc_line_arg'
+ }
+ ],
+ 'cmdname' => 'section',
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'extra' => {
+ 'command' => {}
+ },
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'empty_spaces_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'Bar'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'spaces_at_end'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'misc_line_arg'
+ }
+ ],
+ 'cmdname' => 'heading',
+ 'extra' => {
+ 'misc_content' => [
+ {}
+ ],
+ 'sections_level' => -1,
+ 'spaces_after_command' => {}
+ },
+ 'level' => 3,
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 3,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ }
+ ],
+ 'extra' => {
+ 'misc_content' => [
+ {}
+ ],
+ 'sections_level' => -1,
+ 'spaces_after_command' => {}
+ },
+ 'level' => 3,
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 2,
+ 'macro' => ''
+ },
+ 'number' => 1,
+ 'parent' => {}
+ },
+ {
+ 'args' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'bye',
+ 'parent' => {}
+ }
+ ],
+ 'type' => 'document_root'
+};
+$result_trees{'loweredheading'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'parent'}
= $result_trees{'loweredheading'}{'contents'}[0]{'contents'}[0];
+$result_trees{'loweredheading'}{'contents'}[0]{'contents'}[0]{'parent'} =
$result_trees{'loweredheading'}{'contents'}[0];
+$result_trees{'loweredheading'}{'contents'}[0]{'parent'} =
$result_trees{'loweredheading'};
+$result_trees{'loweredheading'}{'contents'}[1]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
= $result_trees{'loweredheading'}{'contents'}[1];
+$result_trees{'loweredheading'}{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
= $result_trees{'loweredheading'}{'contents'}[1]{'args'}[0];
+$result_trees{'loweredheading'}{'contents'}[1]{'args'}[0]{'contents'}[1]{'parent'}
= $result_trees{'loweredheading'}{'contents'}[1]{'args'}[0];
+$result_trees{'loweredheading'}{'contents'}[1]{'args'}[0]{'contents'}[2]{'parent'}
= $result_trees{'loweredheading'}{'contents'}[1]{'args'}[0];
+$result_trees{'loweredheading'}{'contents'}[1]{'args'}[0]{'parent'} =
$result_trees{'loweredheading'}{'contents'}[1];
+$result_trees{'loweredheading'}{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
= $result_trees{'loweredheading'}{'contents'}[1]{'contents'}[0];
+$result_trees{'loweredheading'}{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'}
= $result_trees{'loweredheading'}{'contents'}[1]{'contents'}[0]{'args'}[0];
+$result_trees{'loweredheading'}{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[1]{'parent'}
= $result_trees{'loweredheading'}{'contents'}[1]{'contents'}[0]{'args'}[0];
+$result_trees{'loweredheading'}{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[2]{'parent'}
= $result_trees{'loweredheading'}{'contents'}[1]{'contents'}[0]{'args'}[0];
+$result_trees{'loweredheading'}{'contents'}[1]{'contents'}[0]{'args'}[0]{'parent'}
= $result_trees{'loweredheading'}{'contents'}[1]{'contents'}[0];
+$result_trees{'loweredheading'}{'contents'}[1]{'contents'}[0]{'extra'}{'misc_content'}[0]
=
$result_trees{'loweredheading'}{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[1];
+$result_trees{'loweredheading'}{'contents'}[1]{'contents'}[0]{'extra'}{'spaces_after_command'}
=
$result_trees{'loweredheading'}{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[0];
+$result_trees{'loweredheading'}{'contents'}[1]{'contents'}[0]{'parent'} =
$result_trees{'loweredheading'}{'contents'}[1];
+$result_trees{'loweredheading'}{'contents'}[1]{'extra'}{'misc_content'}[0] =
$result_trees{'loweredheading'}{'contents'}[1]{'args'}[0]{'contents'}[1];
+$result_trees{'loweredheading'}{'contents'}[1]{'extra'}{'spaces_after_command'}
= $result_trees{'loweredheading'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'loweredheading'}{'contents'}[1]{'parent'} =
$result_trees{'loweredheading'};
+$result_trees{'loweredheading'}{'contents'}[2]{'args'}[0]{'parent'} =
$result_trees{'loweredheading'}{'contents'}[2];
+$result_trees{'loweredheading'}{'contents'}[2]{'parent'} =
$result_trees{'loweredheading'};
+
+$result_texis{'loweredheading'} = '@lowersections
address@hidden Foo
address@hidden Bar
address@hidden
+';
+
+
+$result_texts{'loweredheading'} = '1 Foo
+-----
+Bar
+---
+';
+
+$result_sectioning{'loweredheading'} = {
+ 'level' => 2,
+ 'section_childs' => [
+ {
+ 'cmdname' => 'section',
+ 'extra' => {
+ 'sections_level' => -1
+ },
+ 'level' => 3,
+ 'number' => 1,
+ 'section_up' => {}
+ }
+ ]
+};
+$result_sectioning{'loweredheading'}{'section_childs'}[0]{'section_up'} =
$result_sectioning{'loweredheading'};
+
+$result_errors{'loweredheading'} = [];
+
+
+1;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [6668] lowered heading test,
Gavin D. Smith <=