[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
texinfo/tp TODO t/30sectioning.t t/results/sect...
From: |
Patrice Dumas |
Subject: |
texinfo/tp TODO t/30sectioning.t t/results/sect... |
Date: |
Wed, 02 Nov 2011 13:06:44 +0000 |
CVSROOT: /sources/texinfo
Module name: texinfo
Changes by: Patrice Dumas <pertusus> 11/11/02 13:06:44
Modified files:
tp : TODO
tp/t : 30sectioning.t
tp/t/results/sectioning: chapter_before_and_after_part.pl
Log message:
Rearrange tests.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/TODO?cvsroot=texinfo&r1=1.201&r2=1.202
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/30sectioning.t?cvsroot=texinfo&r1=1.58&r2=1.59
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/chapter_before_and_after_part.pl?cvsroot=texinfo&r1=1.12&r2=1.13
Patches:
Index: TODO
===================================================================
RCS file: /sources/texinfo/texinfo/tp/TODO,v
retrieving revision 1.201
retrieving revision 1.202
diff -u -b -r1.201 -r1.202
--- TODO 2 Nov 2011 12:13:56 -0000 1.201
+++ TODO 2 Nov 2011 13:06:43 -0000 1.202
@@ -9,7 +9,7 @@
Right now VERBOSE is almost not used.
-There should be a warning with something like
+There should be a warning for something like
@example text
...
@@ -30,7 +30,7 @@
plaintext_tests/punctuation_abbr_acronym
-Handle better @exdent in html (there is a FIXME in the code)?
+Handle better @exdent in html? (there is a FIXME in the code)
When the HTML.pm is finished, document the API, that is everything
in Texinfo::Config.
@@ -131,8 +131,8 @@
and not
(1)
-- category: deffn_name arguments arg2 more args with end of line
-It is unclear whether it is right or wrong. It happens this way because
-the paragraph starts right after the footnote number.
+It happens this way because the paragraph starts right after the footnote
+number.
In html, test
empty lines at the begining,
@@ -143,11 +143,7 @@
In html test empty @top for title, with different cases for
setcontentsaftertit* and for anchors.
-Tests in contents/ are incorporated? Also a test is missing, along:
address@hidden chap
address@hidden part
address@hidden jjj
address@hidden
+Tests in contents/ are incorporated?
test an lone @contents without any sectioning command.
Index: t/30sectioning.t
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/30sectioning.t,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -b -r1.58 -r1.59
--- t/30sectioning.t 30 Sep 2011 23:09:45 -0000 1.58
+++ t/30sectioning.t 2 Nov 2011 13:06:43 -0000 1.59
@@ -359,6 +359,16 @@
@node node after chapter 2
', {'test_split' => 'section'}],
+['chapter_before_and_after_part',
+'@chapter chapter
+
address@hidden part
+
address@hidden chapter 2
+
address@hidden
+', {'test_split' => 'section'}
+],
);
my @tests_info = (
@@ -1423,14 +1433,6 @@
@chapter chapter
'],
-['chapter_before_and_after_part',
-'@chapter chapter
-
address@hidden part
-
address@hidden chapter 2
-', {'test_split' => 'section'}
-],
['top_part_chapter',
'@top top
@@ -1470,7 +1472,8 @@
my @xml_tests_converted_tests = ('section_before_part', 'chapter_before_part',
'part_before_top', 'double_part', 'section_in_unnumbered_plaintext',
- 'two_unnumbered_no_argument', 'two_nodes_between_chapters');
+ 'two_unnumbered_no_argument', 'two_nodes_between_chapters',
+ 'chapter_before_and_after_part');
foreach my $test (@tests_converted) {
push @{$test->[2]->{'test_formats'}}, 'plaintext';
@@ -1492,7 +1495,7 @@
}
my @xml_tests_cases_tests = ('part_before_section',
-'section_before_chapter', 'chapter_before_and_after_part',
+'section_before_chapter',
'top_part_chapter', 'section_before_top_no_node',
'section_chapter_before_top', 'sectioning_part_appendix');
foreach my $test (@test_cases) {
Index: t/results/sectioning/chapter_before_and_after_part.pl
===================================================================
RCS file:
/sources/texinfo/texinfo/tp/t/results/sectioning/chapter_before_and_after_part.pl,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- t/results/sectioning/chapter_before_and_after_part.pl 29 Sep 2011
11:30:25 -0000 1.12
+++ t/results/sectioning/chapter_before_and_after_part.pl 2 Nov 2011
13:06:44 -0000 1.13
@@ -149,7 +149,18 @@
}
],
'cmdname' => 'chapter',
- 'contents' => [],
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'cmdname' => 'contents',
+ 'parent' => {}
+ }
+ ],
'extra' => {
'associated_part' => {},
'misc_content' => [
@@ -198,6 +209,8 @@
$result_trees{'chapter_before_and_after_part'}[1]{'contents'}[1]{'args'}[0]{'contents'}[1]{'parent'}
= $result_trees{'chapter_before_and_after_part'}[1]{'contents'}[1]{'args'}[0];
$result_trees{'chapter_before_and_after_part'}[1]{'contents'}[1]{'args'}[0]{'contents'}[2]{'parent'}
= $result_trees{'chapter_before_and_after_part'}[1]{'contents'}[1]{'args'}[0];
$result_trees{'chapter_before_and_after_part'}[1]{'contents'}[1]{'args'}[0]{'parent'}
= $result_trees{'chapter_before_and_after_part'}[1]{'contents'}[1];
+$result_trees{'chapter_before_and_after_part'}[1]{'contents'}[1]{'contents'}[0]{'parent'}
= $result_trees{'chapter_before_and_after_part'}[1]{'contents'}[1];
+$result_trees{'chapter_before_and_after_part'}[1]{'contents'}[1]{'contents'}[1]{'parent'}
= $result_trees{'chapter_before_and_after_part'}[1]{'contents'}[1];
$result_trees{'chapter_before_and_after_part'}[1]{'contents'}[1]{'extra'}{'associated_part'}
= $result_trees{'chapter_before_and_after_part'}[1]{'contents'}[0];
$result_trees{'chapter_before_and_after_part'}[1]{'contents'}[1]{'extra'}{'misc_content'}[0]
=
$result_trees{'chapter_before_and_after_part'}[1]{'contents'}[1]{'args'}[0]{'contents'}[1];
$result_trees{'chapter_before_and_after_part'}[1]{'contents'}[1]{'parent'} =
$result_trees{'chapter_before_and_after_part'}[1];
@@ -210,6 +223,8 @@
@part part
@chapter chapter 2
+
address@hidden
';
@@ -221,6 +236,7 @@
2 chapter 2
***********
+
';
$result_sectioning{'chapter_before_and_after_part'} = {
@@ -329,12 +345,113 @@
';
+$result_converted{'plaintext'}->{'chapter_before_and_after_part'} = '1 chapter
+*********
+
+2 chapter 2
+***********
+
+1 chapter
+part
+2 chapter 2
+';
+
+
+$result_converted{'html'}->{'chapter_before_and_after_part'} = '<!DOCTYPE html
PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
+<head>
+<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="Generator" content="tp">
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<link href="#SEC_Contents" rel="contents" title="Table of Contents">
+<style type="text/css">
+<!--
+a.summary-letter {text-decoration: none}
+blockquote.smallquotation {font-size: smaller}
+div.display {margin-left: 3.2em}
+div.example {margin-left: 3.2em}
+div.lisp {margin-left: 3.2em}
+div.smalldisplay {margin-left: 3.2em}
+div.smallexample {margin-left: 3.2em}
+div.smalllisp {margin-left: 3.2em}
+pre.display {font-family: serif}
+pre.format {font-family: serif}
+pre.menu-comment {font-family: serif}
+pre.menu-preformatted {font-family: serif}
+pre.smalldisplay {font-family: serif; font-size: smaller}
+pre.smallexample {font-size: smaller}
+pre.smallformat {font-family: serif; font-size: smaller}
+pre.smalllisp {font-size: smaller}
+span.nocodebreak {white-space:pre}
+span.nolinebreak {white-space:pre}
+span.roman {font-family:serif; font-weight:normal}
+span.sansserif {font-family:sans-serif; font-weight:normal}
+ul.no-bullet {list-style: none}
+-->
+</style>
+
+
+</head>
+
+<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF"
vlink="#800080" alink="#FF0000">
+<a name="chapter"></a>
+<h2 class="chapter">1 chapter</h2>
+
+<a name="part"></a>
+<h1 class="part">part</h1>
+<hr>
+
+<a name="chapter-2"></a>
+<h2 class="chapter">2 chapter 2</h2>
+
+<a name="SEC_Contents"></a>
+<h1>Table of Contents</h1>
+
+<div class="contents">
+<ul class="no-bullet">
+ <li><a name="toc-chapter" href="#chapter">1 chapter</a></li>
+<li><a name="toc-part" href="#part">part</a>
+<ul class="no-bullet">
+ <li><a name="toc-chapter-2" href="#chapter-2">2 chapter 2</a></li>
+</ul></li>
+
+</ul>
+</div>
+
+<hr>
+<p>
+
+
+</p>
+</body>
+</html>
+';
+
+$result_converted_errors{'html'}->{'chapter_before_and_after_part'} = [
+ {
+ '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'}->{'chapter_before_and_after_part'} =
'<chapter><sectiontitle>chapter</sectiontitle>
</chapter>
<part><sectiontitle>part</sectiontitle>
<chapter><sectiontitle>chapter 2</sectiontitle>
+
+<contents></contents>
</chapter>
</part>
';
- texinfo/tp TODO t/30sectioning.t t/results/sect...,
Patrice Dumas <=