From 222b01f5169f1c7e69762e0e8904c24f78f71882 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 28 Jul 2010 11:52:48 +0200 Subject: update to MediaWiki 1.16.0 --- t/inc/Revision.t | 79 -------------------------------------------------------- 1 file changed, 79 deletions(-) delete mode 100644 t/inc/Revision.t (limited to 't/inc/Revision.t') diff --git a/t/inc/Revision.t b/t/inc/Revision.t deleted file mode 100644 index a6f2849b..00000000 --- a/t/inc/Revision.t +++ /dev/null @@ -1,79 +0,0 @@ -#!/usr/bin/env php -old_flags = ''; -$row->old_text = 'This is a bunch of revision text.'; -cmp_ok( Revision::getRevisionText( $row ), '==', - 'This is a bunch of revision text.', 'Get revision text' ); - -$row = new stdClass; -$row->old_flags = 'gzip'; -$row->old_text = gzdeflate( 'This is a bunch of revision text.' ); -cmp_ok( Revision::getRevisionText( $row ), '==', - 'This is a bunch of revision text.', 'Get revision text with gzip compression' ); - -$wgLegacyEncoding = 'iso-8859-1'; - -$row = new stdClass; -$row->old_flags = 'utf-8'; -$row->old_text = "Wiki est l'\xc3\xa9cole superieur !"; -cmp_ok( Revision::getRevisionText( $row ), '==', - "Wiki est l'\xc3\xa9cole superieur !", 'Get revision text utf-8 native' ); - -$row = new stdClass; -$row->old_flags = ''; -$row->old_text = "Wiki est l'\xe9cole superieur !"; -cmp_ok( Revision::getRevisionText( $row ), '==', - "Wiki est l'\xc3\xa9cole superieur !", 'Get revision text utf-8 legacy' ); - -$row = new stdClass; -$row->old_flags = 'gzip,utf-8'; -$row->old_text = gzdeflate( "Wiki est l'\xc3\xa9cole superieur !" ); -cmp_ok( Revision::getRevisionText( $row ), '==', - "Wiki est l'\xc3\xa9cole superieur !", 'Get revision text utf-8 native and gzip' ); - -$row = new stdClass; -$row->old_flags = 'gzip'; -$row->old_text = gzdeflate( "Wiki est l'\xe9cole superieur !" ); -cmp_ok( Revision::getRevisionText( $row ), '==', - "Wiki est l'\xc3\xa9cole superieur !", 'Get revision text utf-8 native and gzip' ); - -$row = new stdClass; -$row->old_text = "Wiki est l'\xc3\xa9cole superieur !"; -$row->old_flags = Revision::compressRevisionText( $row->old_text ); -like( $row->old_flags, '/utf-8/', "Flags should contain 'utf-8'" ); -unlike( $row->old_flags, '/gzip/', "Flags should not contain 'gzip'" ); -cmp_ok( $row->old_text, '==', - "Wiki est l'\xc3\xa9cole superieur !", "Direct check" ); -cmp_ok( Revision::getRevisionText( $row ), '==', - "Wiki est l'\xc3\xa9cole superieur !", "getRevisionText" ); - -$wgCompressRevisions = true; - -$row = new stdClass; -$row->old_text = "Wiki est l'\xc3\xa9cole superieur !"; -$row->old_flags = Revision::compressRevisionText( $row->old_text ); -like( $row->old_flags, '/utf-8/', "Flags should contain 'utf-8'" ); -like( $row->old_flags, '/gzip/', "Flags should contain 'gzip'" ); -cmp_ok( gzinflate( $row->old_text ), '==', - "Wiki est l'\xc3\xa9cole superieur !", "Direct check" ); -cmp_ok( Revision::getRevisionText( $row ), '==', - "Wiki est l'\xc3\xa9cole superieur !", "getRevisionText" ); -- cgit v1.2.2