Changeset 4851 for lang/perl/HTTP-MobileAgent-Plugin-Charset/trunk
- Timestamp:
- 01/18/08 12:04:44 (5 years ago)
- Location:
- lang/perl/HTTP-MobileAgent-Plugin-Charset/trunk
- Files:
-
- 2 modified
-
Makefile.PL (modified) (1 diff)
-
t/01_can_display_utf8.t (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/HTTP-MobileAgent-Plugin-Charset/trunk/Makefile.PL
r4173 r4851 3 3 all_from 'lib/HTTP/MobileAgent/Plugin/Charset.pm'; 4 4 5 requires $_ for (qw/ /);5 requires 'HTTP::MobileAgent' => '0.27'; 6 6 7 7 build_requires 'Test::More'; -
lang/perl/HTTP-MobileAgent-Plugin-Charset/trunk/t/01_can_display_utf8.t
r4189 r4851 8 8 9 9 filters { 10 input => [qw/can_display_utf8/], 10 input => [qw/filt/], 11 expected => [qw/yaml/], 11 12 }; 12 13 13 run_is input => 'expected';14 run_is_deeply input => 'expected'; 14 15 15 sub can_display_utf8{16 sub filt { 16 17 my $ua = shift; 17 18 … … 24 25 : 'shift_jis; q=0.6, *;q=0.1'; 25 26 } 27 26 28 my $agent = HTTP::MobileAgent->new; 27 $agent->can_display_utf8 ? 'utf8' : 'no utf8'; 29 +{ 30 can_display_utf8 => $agent->can_display_utf8 ? 'utf8' : 'no utf8', 31 }; 28 32 } 29 33 … … 32 36 === 33 37 --- input: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.8) Gecko/20071019 Firefox/2.0.0.8 34 --- expected: utf8 38 --- expected 39 can_display_utf8: utf8 35 40 36 41 === docomo foma 37 42 --- input: DoCoMo/2.0 N905iBiz(c100;TJ) 38 --- expected: utf8 43 --- expected 44 can_display_utf8: utf8 39 45 40 46 === docomo mova 41 47 --- input: DoCoMo/1.0/D501i 42 --- expected: no utf8 48 --- expected 49 can_display_utf8: no utf8 43 50 44 51 === 45 52 --- input: Vodafone/1.0/V802SE/SEJ001/SNXXXXXXXXX Browser/SEMC-Browser/4.1 Profile/MIDP-2.0 Configuration/CLDC-1.10 46 --- expected: utf8 53 --- expected 54 can_display_utf8: utf8 47 55 48 56 === 49 57 --- input: J-PHONE/2.0/J-DN02 50 --- expected: no utf8 58 --- expected 59 can_display_utf8: no utf8 51 60 52 61 === willcom 53 62 --- input: Mozilla/3.0(DDIPOCKET;JRC/AH-J3001V,AH-J3002V/1.0/0100/c50)CNF/2.0 54 --- expected: no utf8 63 --- expected 64 can_display_utf8: no utf8 55 65 56 66 === willcom 57 67 --- input: Mozilla/3.0(DDIPOCKET;KYOCERA/AH-K3001V/1.4.1.67.000000/0.1/C100) Opera 7.0 58 --- expected: utf8 68 --- expected 69 can_display_utf8: utf8 59 70 60 71 === ez 61 72 --- input: UP.Browser/3.01-HI01 UP.Link/3.4.5.2 62 --- expected: no utf8 73 --- expected 74 can_display_utf8: no utf8 63 75 64 76 === ez 65 77 --- input: KDDI-TS21 UP.Browser/6.0.2.276 (GUI) MMP/1.1 66 --- expected: utf8 78 --- expected 79 can_display_utf8: utf8 67 80
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)