r96484 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r96483‎ | r96484 | r96485 >
Date:20:13, 7 September 2011
Author:hashar
Status:ok
Tags:
Comment:
show chunk causing diffhighlight to throw an exception

also added a test representing krinkle comment on r94951.
Modified paths:
  • /trunk/extensions/CodeReview/backend/DiffHighlighter.php (modified) (history)
  • /trunk/extensions/CodeReview/tests/DiffHighlighterTest.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/backend/DiffHighlighter.php
@@ -299,7 +299,7 @@
300300 if( $matches !== 1 ) {
301301 # We really really should have matched something!
302302 throw new MWException(
303 - __METHOD__ . " given an invalid chunk header \n"
 303+ __METHOD__ . " given an invalid chunk header: '$chunkHeader'\n"
304304 );
305305 }
306306 return $m;
Index: trunk/extensions/CodeReview/tests/DiffHighlighterTest.php
@@ -22,6 +22,10 @@
2323 array( 76, 17, 76, 21 ),
2424 '@@ -76,17 +76,21 @@'
2525 ),
 26+ array(
 27+ array( 1, 63, 0, 0 ),
 28+ '@@ -1,63 +0,0 @@'
 29+ ),
2630 );
2731 }
2832

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r94951new method to parse chunk delimiters...hashar21:28, 18 August 2011

Status & tagging log