Changeset 873


Ignore:
Timestamp:
11/23/08 10:54:30 (4 years ago)
Author:
CrawfordCurrie
Message:

Item175: not sure why this test decided not to work; looks like it was always wrong.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UnitTestContrib/test/unit/UTF8Tests.pm

    r816 r873  
    1212# 
    1313package UTF8Tests; 
    14 use base qw(FoswikiTestCase); 
     14use base qw(FoswikiFnTestCase); 
    1515 
    1616use strict; 
    1717 
    1818use Foswiki; 
    19  
    20 sub set_up { 
    21 } 
    22  
    23 sub tear_down { 
    24 } 
    2519 
    2620sub DISABLEtest_urlEncodeDecode { 
     
    315309EOS 
    316310 
    317     my $t = segfaulting_urlDecode($s); 
     311    my $t = $this->segfaulting_urlDecode($s); 
    318312} 
    319313 
    320314sub segfaulting_urlDecode { 
    321     my $text = shift; 
     315    my ($this, $text) = @_; 
    322316 
    323317    $text =~ s/%([\da-f]{2})/chr(hex($1))/gei; 
    324318    $text =~ s/%u([\da-f]{4})/chr(hex($1))/gei;  
    325319 
    326     my $t = Foswiki::UTF82SiteCharSet( $text );  
     320    my $t = $this->{twiki}->UTF82SiteCharSet( $text );  
    327321 
    328322    $text = $t if ( $t );  
Note: See TracChangeset for help on using the changeset viewer.