r83872 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r83871‎ | r83872 | r83873 >
Date:07:38, 14 March 2011
Author:nikerabbit
Status:resolved
Tags:
Comment:
Added test for bug 27993
Modified paths:
  • /trunk/extensions/wikidiff2/tests/003.phpt (added) (history)

Diff [purge]

Index: trunk/extensions/wikidiff2/tests/003.phpt
@@ -0,0 +1,34 @@
 2+--TEST--
 3+Diff test C: https://bugzilla.wikimedia.org/show_bug.cgi?id=27993
 4+--SKIPIF--
 5+<?php if (!extension_loaded("wikidiff2")) print "skip"; ?>
 6+--FILE--
 7+<?php
 8+$x = <<<EOT
 9+!!FUZZY!!Rajaa
 10+
 11+EOT;
 12+
 13+#---------------------------------------------------
 14+
 15+$y = <<<EOT
 16+Rajaa
 17+
 18+EOT;
 19+
 20+#---------------------------------------------------
 21+
 22+print wikidiff2_do_diff( $x, $y, 2 );
 23+
 24+?>
 25+--EXPECT--
 26+<tr>
 27+ <td colspan="2" class="diff-lineno"><!--LINE 1--></td>
 28+ <td colspan="2" class="diff-lineno"><!--LINE 1--></td>
 29+</tr>
 30+<tr>
 31+ <td class="diff-marker">−</td>
 32+ <td class="diff-deletedline"><div>!!FUZZY!!Rajaa</div></td>
 33+ <td class="diff-marker">+</td>
 34+ <td class="diff-addedline"><div>Rajaa</div></td>
 35+</tr>

Follow-up revisions

RevisionCommit summaryAuthorDate
r83886* Fixed bug 27993: in Wikidiff2::explodeWords(), the iterator pBrk is invalid...tstarling11:51, 14 March 2011

Status & tagging log