Skip to content
Extraits de code Groupes Projets
Valider 1bdaa24a rédigé par cerdic's avatar cerdic Validation de marcimat
Parcourir les fichiers

tests: les attributs sur les notes sont toujours attendus avec un double quote

parent 0290eabe
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -13,9 +13,9 @@ ...@@ -13,9 +13,9 @@
#SET{err,''} #SET{err,''}
[(#REM) une note simple ] [(#REM) une note simple ]
[(#SET{appelnote,#VAL{<p>a<span class="spip_note_ref">&nbsp;\[<a href='#nb1' class='spip_note' rel='appendix' title='b' id='nh1'>1</a>\]</span></p>}})] [(#SET{appelnote,#VAL{<p>a<span class="spip_note_ref">&nbsp;\[<a href="#nb1" class="spip_note" rel="appendix" title="b" id="nh1">1</a>\]</span></p>}})]
[(#SET{lanote,#VAL{<div id='nb1'> [(#SET{lanote,#VAL{<div id="nb1">
<p><span class="spip_note_ref">\[<a href='#nh1' class='spip_note' title='<:info_notes:> 1' rev='appendix'>1</a>\]&nbsp;</span>b</p> <p><span class="spip_note_ref">\[<a href="#nh1" class="spip_note" title="<:info_notes:> 1" rev="appendix">1</a>\]&nbsp;</span>b</p>
</div>}})] </div>}})]
#SET{test1,#VAL{'a\[\[b\]\]'}|propre} #SET{test1,#VAL{'a\[\[b\]\]'}|propre}
[(#GET{test1}|=={#GET{appelnote}}|?{'',#SET{err,'erreur appel note simple'}})] [(#GET{test1}|=={#GET{appelnote}}|?{'',#SET{err,'erreur appel note simple'}})]
......
...@@ -21,10 +21,10 @@ class NotesTest extends TestCase ...@@ -21,10 +21,10 @@ class NotesTest extends TestCase
public function testNoteSimple(): void public function testNoteSimple(): void
{ {
$expected = "<p>a<span class=\"spip_note_ref\">&nbsp;[<a href='#nb1' class='spip_note' rel='appendix' title='b' id='nh1'>1</a>]</span></p>"; $expected = "<p>a<span class=\"spip_note_ref\">&nbsp;[<a href=\"#nb1\" class=\"spip_note\" rel=\"appendix\" title=\"b\" id=\"nh1\">1</a>]</span></p>";
$this->assertEquals($expected, propre('a[[b]]')); $this->assertEquals($expected, propre('a[[b]]'));
$expected = "<div id=\"nb1\">\n<p><span class=\"spip_note_ref\">[<a href='#nh1' class='spip_note' title='" . _T('info_notes') . " 1' rev='appendix'>1</a>]&nbsp;</span>b</p>\n</div>"; $expected = "<div id=\"nb1\">\n<p><span class=\"spip_note_ref\">[<a href=\"#nh1\" class=\"spip_note\" title=\"" . _T('info_notes') . " 1\" rev=\"appendix\">1</a>]&nbsp;</span>b</p>\n</div>";
$this->assertEquals($expected, calculer_notes()); $this->assertEquals($expected, calculer_notes());
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter