cvs: pear /Net_UserAgent_Mobile/tests 05-display.phpt
| From: | KUBO Atsuhiro | Date: | Fri, 14 Nov 2003 07:23:53 +0000 |
| Subject: | cvs: pear /Net_UserAgent_Mobile/tests 05-display.phpt | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-14266@lists.php.net to get a copy of this message | ||
kuboa Fri Nov 14 02:23:53 2003 EDT
Modified files:
/pear/Net_UserAgent_Mobile/tests 05-display.phpt
Log:
- Added data for DoCoMo's D505iS, P505iS, P252i, N252i.
- Changed *require/include* statements depend on this package for
testing.
Index: pear/Net_UserAgent_Mobile/tests/05-display.phpt
diff -u pear/Net_UserAgent_Mobile/tests/05-display.phpt:1.11
pear/Net_UserAgent_Mobile/tests/05-display.phpt:1.12
--- pear/Net_UserAgent_Mobile/tests/05-display.phpt:1.11 Sun Oct 12 10:56:06 2003
+++ pear/Net_UserAgent_Mobile/tests/05-display.phpt Fri Nov 14 02:23:53 2003
@@ -1,7 +1,7 @@
--TEST--
Net_UserAgent_Mobile: Display
--SKIPIF--
-<?php if (!@include('Net/UserAgent/Mobile.php')) print 'skip'; ?>
+<?php if (!@include('../Mobile.php')) print 'skip'; ?>
--FILE--
<?php
//
@@ -10,7 +10,7 @@
//
error_reporting(E_ALL);
-require_once('Net/UserAgent/Mobile.php');
+require_once('../Mobile.php');
$tests = array(
array(
@@ -190,6 +190,50 @@
'width_bytes' => 24,
'height_bytes' => 12
)
+ ),
+ array(
+ array('HTTP_USER_AGENT' =>
'DoCoMo/1.0/D505iS/c20/TB/W20H10'),
+ array(
+ 'width' => 240,
+ 'height' => 270,
+ 'color' => true,
+ 'depth' => 262144,
+ 'width_bytes' => 20,
+ 'height_bytes' => 10
+ )
+ ),
+ array(
+ array('HTTP_USER_AGENT' =>
'DoCoMo/1.0/P505iS/c20/TB/W20H10'),
+ array(
+ 'width' => 240,
+ 'height' => 266,
+ 'color' => true,
+ 'depth' => 65536,
+ 'width_bytes' => 20,
+ 'height_bytes' => 10
+ )
+ ),
+ array(
+ array('HTTP_USER_AGENT' =>
'DoCoMo/1.0/P252i/c10/TB/W22H10'),
+ array(
+ 'width' => 132,
+ 'height' => 144,
+ 'color' => true,
+ 'depth' => 65536,
+ 'width_bytes' => 22,
+ 'height_bytes' => 10
+ )
+ ),
+ array(
+ array('HTTP_USER_AGENT' =>
'DoCoMo/1.0/N252i/c10/TB/W22H10'),
+ array(
+ 'width' => 132,
+ 'height' => 140,
+ 'color' => true,
+ 'depth' => 65536,
+ 'width_bytes' => 22,
+ 'height_bytes' => 10
+ )
)
);
@@ -362,3 +406,39 @@
262144
24
12
+1
+net_useragent_mobile_display
+DoCoMo/1.0/D505iS/c20/TB/W20H10
+240
+270
+1
+262144
+20
+10
+1
+net_useragent_mobile_display
+DoCoMo/1.0/P505iS/c20/TB/W20H10
+240
+266
+1
+65536
+20
+10
+1
+net_useragent_mobile_display
+DoCoMo/1.0/P252i/c10/TB/W22H10
+132
+144
+1
+65536
+22
+10
+1
+net_useragent_mobile_display
+DoCoMo/1.0/N252i/c10/TB/W22H10
+132
+140
+1
+65536
+22
+10