r532 - in trunk/jrst/src/test: java/org/nuiton/jrst/bugs resources/bugs
Author: echatellier Date: 2011-02-08 18:08:28 +0100 (Tue, 08 Feb 2011) New Revision: 532 Url: http://nuiton.org/repositories/revision/jrst/532 Log: Add test about #274:Rst file parsing fails with no level 2 subtitle Added: trunk/jrst/src/test/java/org/nuiton/jrst/bugs/TitlesTest.java trunk/jrst/src/test/resources/bugs/testNoSubtitle.rst Added: trunk/jrst/src/test/java/org/nuiton/jrst/bugs/TitlesTest.java =================================================================== --- trunk/jrst/src/test/java/org/nuiton/jrst/bugs/TitlesTest.java (rev 0) +++ trunk/jrst/src/test/java/org/nuiton/jrst/bugs/TitlesTest.java 2011-02-08 17:08:28 UTC (rev 532) @@ -0,0 +1,56 @@ +/* + * #%L + * + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Codelutin, Chatellier Eric + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Lesser Public License for more details. + * + * You should have received a copy of the GNU General Lesser Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ + +package org.nuiton.jrst.bugs; + +import java.io.File; + +import org.junit.Test; +import org.nuiton.jrst.JRST; + +/** + * Test concernant les titres en général. + * + * @author chatellier + * @version $Revision$ + * + * Last update : $Date$ + * By : $Author$ + */ +public class TitlesTest { + + /** + * Test que la génération fonctionne meme s'il n'y a pas de titre + * de niveau 2. + * @throws Exception + */ + @Test + public void testNoSubtitle() throws Exception { + File in = new File("src/test/resources/bugs/testNoSubtitle.rst"); + File out = File.createTempFile("jrst-RstToHtml2", ".html"); + out.deleteOnExit(); + JRST.generate(JRST.TYPE_HTML, in, out, JRST.Overwrite.ALLTIME); + } +} Property changes on: trunk/jrst/src/test/java/org/nuiton/jrst/bugs/TitlesTest.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: trunk/jrst/src/test/resources/bugs/testNoSubtitle.rst =================================================================== --- trunk/jrst/src/test/resources/bugs/testNoSubtitle.rst (rev 0) +++ trunk/jrst/src/test/resources/bugs/testNoSubtitle.rst 2011-02-08 17:08:28 UTC (rev 532) @@ -0,0 +1,19 @@ +============== +ECMAScriptEdit +============== + +:Author: Benjamin Poussin <poussin@codelutin.com> +:Revision: $Revision: 1545 $ +:Date: $Date: 2008-10-08 16:13:44 +0200 (mer 08 oct 2008) $ + +.. sectnum:: + +.. contents:: + +L'editeur d'ECMAScript permet d'influer sur la façon dont isis-fish simule. +Une partie du simulateur est écrit grâce à cette interface, il suffit de +modifier ce code pour modifier la façon de simuler. Le code qui n'est pas +directement écrit en ECMAScript devra être réécrit pour modifier cette +partie du simulation. Cette partie du simulateur n'est pas écrite en +ECMAScript pour des raisons de performance, car des optimisations sont faite +lors de la compilation du code, et pour des raisons de débuggage.
participants (1)
-
echatellier@users.nuiton.org