Changeset 8661
- Timestamp:
- 04/02/08 18:53:44 (5 years ago)
- Location:
- lang/perl/HTTP-MobileAttribute/trunk
- Files:
-
- 1 added
- 1 modified
-
lib/HTTP/MobileAttribute/Plugin/Display.pm (added)
-
t/05_display.t (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/HTTP-MobileAttribute/trunk/t/05_display.t
r8596 r8661 1 1 use strict; 2 use Test::More tests => 38; 2 use warnings; 3 use Test::More tests => 28; 3 4 4 5 use HTTP::MobileAttribute; … … 26 27 [ { HTTP_USER_AGENT => 'DoCoMo/2.0 N703imyu' }, 27 28 { width => 240, height => 270, color => 1, depth => 262144 } ], 28 [ { HTTP_USER_AGENT => "DoCoMo/1.0/D505i/c20/TC/W20H10" },29 { width_bytes => 20, height_bytes => 10 } ],30 29 ); 30 31 HTTP::MobileAttribute->load_plugins(qw/Display/); 31 32 32 33 for (@Tests) { … … 35 36 my $ua = HTTP::MobileAttribute->new; 36 37 my $display = $ua->display; 37 isa_ok $display, 'HTTP::MobileAttribute::Display';38 38 for my $method (keys %$values) { 39 39 is $display->$method(), $values->{$method}, "$method = $values->{$method}";
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)