https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112304

Revision: 112304
Author:   maxsem
Date:     2012-02-24 08:01:36 +0000 (Fri, 24 Feb 2012)
Log Message:
-----------
Follow-up r112303: and tests too

Modified Paths:
--------------
    trunk/extensions/MobileFrontend/tests/MobileFormatterTest.php

Modified: trunk/extensions/MobileFrontend/tests/MobileFormatterTest.php
===================================================================
--- trunk/extensions/MobileFrontend/tests/MobileFormatterTest.php       
2012-02-24 07:48:49 UTC (rev 112303)
+++ trunk/extensions/MobileFrontend/tests/MobileFormatterTest.php       
2012-02-24 08:01:36 UTC (rev 112304)
@@ -10,7 +10,7 @@
        public function testXhtmlTransform( $input, $expected, $callback = 
false ) {
                $t = Title::newFromText( 'Mobile' );
                $input = str_replace( "\r", '', $input ); // "yay" to Windows!
-               $mf = new MobileFormatter( "<div id='content'>$input</div>", 
$t, 'XHTML' );
+               $mf = new MobileFormatter( MobileFormatter::wrapHTML( $input ), 
$t, 'XHTML' );
                if ( $callback ) {
                        $callback( $mf );
                }


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to