r112304 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112303‎ | r112304 | r112305 >
Date:08:01, 24 February 2012
Author:maxsem
Status:ok
Tags:
Comment:
Follow-up r112303: and tests too
Modified paths:
  • /trunk/extensions/MobileFrontend/tests/MobileFormatterTest.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/tests/MobileFormatterTest.php
@@ -10,7 +10,7 @@
1111 public function testXhtmlTransform( $input, $expected, $callback = false ) {
1212 $t = Title::newFromText( 'Mobile' );
1313 $input = str_replace( "\r", '', $input ); // "yay" to Windows!
14 - $mf = new MobileFormatter( "<div id='content'>$input</div>", $t, 'XHTML' );
 14+ $mf = new MobileFormatter( MobileFormatter::wrapHTML( $input ), $t, 'XHTML' );
1515 if ( $callback ) {
1616 $callback( $mf );
1717 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r112303Fixed bug with earlier versions of libxmlmaxsem07:48, 24 February 2012

Status & tagging log