root/HTTP-MobileAgent/trunk/t/06_nonmobile.t

Revision 847 (checked in by miyagawa, 17 years ago)

is_non_mobile method

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 use strict;
2 use Test::More tests => 825;
3 use HTTP::MobileAgent;
4
5 while (<DATA>) {
6     chomp;
7     $ENV{HTTP_USER_AGENT} = $_;
8     my $agent = HTTP::MobileAgent->new;
9     isa_ok $agent, 'HTTP::MobileAgent::NonMobile';
10     ok ! $agent->is_docomo;
11     ok ! $agent->is_j_phone;
12     ok ! $agent->is_ezweb;
13     ok $agent->is_non_mobile;
14 }
15
16 __END__
17 Mozilla/2.0 (compatible; Ask Jeeves)
18 Mozilla/2.0 (compatible; MSIE 3.01; Windows 95)
19 Mozilla/2.0 (compatible; MSIE 3.02; Windows CE)
20 Mozilla/2.0 (compatible; MSIE 3.02; Windows CE; 240x320)
21 Mozilla/2.0 (compatible; MSIE 3.02; Windows CE; 240x320; PPC)
22 Mozilla/2.0 (compatible; MSIE 3.02; Windows CE; PPC; 240x320)
23 Mozilla/2.0 (compatible; T-H-U-N-D-E-R-S-T-O-N-E)
24 Mozilla/3.0 (DreamPassport/3.0)
25 Mozilla/3.0 (DreamPassport/3.15; SONICTEAM/PSOV2)
26 Mozilla/3.0 (DreamPassport/3.2)
27 Mozilla/3.0 (Slurp.so/Goo; slurp@inktomi.com; http://www.inktomi.com/slurp.html)
28 Mozilla/3.0 (Slurp/si; slurp@inktomi.com; http://www.inktomi.com/slurp.html)
29 Mozilla/3.0 (Win95; I)
30 Mozilla/3.0 (Windows 2000; U) Opera 6.05  [ja]
31 Mozilla/3.0 (aruyo/0.01;http://www.aaacafe.ne.jp/ ;support@aaacafe.ne.jp)
32 Mozilla/3.0 (compatible)
33 Mozilla/3.0 (compatible; Indy Library)
34 Mozilla/3.0 (compatible; NetMind-Minder/4.3.1J)
35 Mozilla/3.0 (compatible; NetPositive/2.2.1; BeOS)
36 Mozilla/3.0 (compatible; PerMan Surfer 3.0; Win95)
37 Mozilla/3.0 (compatible;)
38 Mozilla/3.01 (compatible;)
39 Mozilla/3.01 [ja] (Macintosh; I; 68K)
40 Mozilla/3.01Gold (Macintosh; I; 68K)
41 Mozilla/3.01Gold (Macintosh; I; 68K; SiteCoach 1.0)
42 Mozilla/4.0
43 Mozilla/4.0 (LINKS ARoMATIZED)
44 Mozilla/4.0 (PDA; SL-A300/1.0,Embedix/Qtopia/1.1.0) NetFront/3.0
45 Mozilla/4.0 (PDA; Windows CE/0.9.3) NetFront/3.0
46 Mozilla/4.0 (Windows NT 4.0)
47 Mozilla/4.0 (compatible
48 Mozilla/4.0 (compatible; MSIE 4.01; MSN 2.5; Windows 95)
49 Mozilla/4.0 (compatible; MSIE 4.01; Windows 95)
50 Mozilla/4.0 (compatible; MSIE 4.01; Windows 98)
51 Mozilla/4.0 (compatible; MSIE 4.01; Windows NT Windows CE)
52 Mozilla/4.0 (compatible; MSIE 4.01; Windows NT)
53 Mozilla/4.0 (compatible; MSIE 4.0; Windows 95)
54 Mozilla/4.0 (compatible; MSIE 4.5; Mac_PowerPC)
55 Mozilla/4.0 (compatible; MSIE 5.00; Windows 98)
56 Mozilla/4.0 (compatible; MSIE 5.01; MSN 2.5; Windows 98)
57 Mozilla/4.0 (compatible; MSIE 5.01; Windows 95)
58 Mozilla/4.0 (compatible; MSIE 5.01; Windows 98)
59 Mozilla/4.0 (compatible; MSIE 5.01; Windows 98; HKBN)
60 Mozilla/4.0 (compatible; MSIE 5.01; Windows 98; MSIECrawler)
61 Mozilla/4.0 (compatible; MSIE 5.01; Windows 98; MSOCD; AtHomeJP0109)
62 Mozilla/4.0 (compatible; MSIE 5.01; Windows 98; Q312461)
63 Mozilla/4.0 (compatible; MSIE 5.01; Windows 98; YComp 5.0.2.4)
64 Mozilla/4.0 (compatible; MSIE 5.01; Windows 98; istb 641)
65 Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
66 Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0) LinkChecker 0.1
67 Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0) WebWasher 3.2
68 Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; .NET CLR 1.0.3705)
69 Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; DigExt)
70 Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; NetCaptor 7.0.1)
71 Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; T312461)
72 Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; istb 641)
73 Mozilla/4.0 (compatible; MSIE 5.01; Windows NT)
74 Mozilla/4.0 (compatible; MSIE 5.01; Windows NT; Lunascape 0.99c)
75 Mozilla/4.0 (compatible; MSIE 5.01; Windows NT; Norfolk Southern Corp.)
76 Mozilla/4.0 (compatible; MSIE 5.01; Windows NT; nk-07102k)
77 Mozilla/4.0 (compatible; MSIE 5.0; AOL 7.0; Windows 98; DigExt)
78 Mozilla/4.0 (compatible; MSIE 5.0; Linux 2.2.18-0vl4.2 i686) Opera 6.0  [en]
79 Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)
80 Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC; AtHomeJP191)
81 Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC;)
82 Mozilla/4.0 (compatible; MSIE 5.0; Win32)
83 Mozilla/4.0 (compatible; MSIE 5.0; Windows 2000) Opera 6.0  [ja]
84 Mozilla/4.0 (compatible; MSIE 5.0; Windows 2000) Opera 6.03  [en]
85 Mozilla/4.0 (compatible; MSIE 5.0; Windows 2000) Opera 6.03  [ja]
86 Mozilla/4.0 (compatible; MSIE 5.0; Windows 2000) Opera 6.05  [en]
87 Mozilla/4.0 (compatible; MSIE 5.0; Windows 2000) Opera 6.05  [ja]
88 Mozilla/4.0 (compatible; MSIE 5.0; Windows 95)
89 Mozilla/4.0 (compatible; MSIE 5.0; Windows 95; DigExt)
90 Mozilla/4.0 (compatible; MSIE 5.0; Windows 98)
91 Mozilla/4.0 (compatible; MSIE 5.0; Windows 98) Opera 5.12  [es]
92 Mozilla/4.0 (compatible; MSIE 5.0; Windows 98) Opera 6.03  [ja]
93 Mozilla/4.0 (compatible; MSIE 5.0; Windows 98) Opera 6.05  [en]
94 Mozilla/4.0 (compatible; MSIE 5.0; Windows 98) Opera 6.05  [ja]
95 Mozilla/4.0 (compatible; MSIE 5.0; Windows 98)::ELNSB50::0000211003200258031a018f000000000505000b00000000
96 Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)
97 Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt; YComp 5.0.0.0)
98 Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; Hotbar 3.0)
99 Mozilla/4.0 (compatible; MSIE 5.0; Windows ME) Opera 6.03  [ja]
100 Mozilla/4.0 (compatible; MSIE 5.0; Windows ME) Opera 6.05  [ja]
101 Mozilla/4.0 (compatible; MSIE 5.0; Windows NT 4.0) Opera 6.0  [ja]
102 Mozilla/4.0 (compatible; MSIE 5.0; Windows NT 4.0) Opera 6.01  [ja]
103 Mozilla/4.0 (compatible; MSIE 5.0; Windows NT 4.0) Opera 6.03  [ja]
104 Mozilla/4.0 (compatible; MSIE 5.0; Windows NT 4.0) Opera 6.05  [ja]
105 Mozilla/4.0 (compatible; MSIE 5.0; Windows NT 5.0)
106 Mozilla/4.0 (compatible; MSIE 5.0; Windows NT)
107 Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt)
108 Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt; DTS Agent
109 Mozilla/4.0 (compatible; MSIE 5.0; Windows XP) Opera 6.01  [de]
110 Mozilla/4.0 (compatible; MSIE 5.0; Windows XP) Opera 6.03  [ja]
111 Mozilla/4.0 (compatible; MSIE 5.0; Windows XP) Opera 6.04  [en]
112 Mozilla/4.0 (compatible; MSIE 5.0; Windows XP) Opera 6.04  [ja]
113 Mozilla/4.0 (compatible; MSIE 5.0; Windows XP) Opera 6.05  [ja]
114 Mozilla/4.0 (compatible; MSIE 5.12; Mac_PowerPC)
115 Mozilla/4.0 (compatible; MSIE 5.14; Mac_PowerPC)
116 Mozilla/4.0 (compatible; MSIE 5.16; Mac_PowerPC)
117 Mozilla/4.0 (compatible; MSIE 5.21; Mac_PowerPC)
118 Mozilla/4.0 (compatible; MSIE 5.22; Mac_PowerPC)
119 Mozilla/4.0 (compatible; MSIE 5.2; Mac_PowerPC)
120 Mozilla/4.0 (compatible; MSIE 5.2; Mac_PowerPC) OmniWeb/4.1.1-v424.6
121 Mozilla/4.0 (compatible; MSIE 5.5; AOL 6.0; Windows 98; Win 9x 4.90)
122 Mozilla/4.0 (compatible; MSIE 5.5; MSN 2.5; AOL 7.0; Windows 98)
123 Mozilla/4.0 (compatible; MSIE 5.5; MSN 2.5; Windows 98)
124 Mozilla/4.0 (compatible; MSIE 5.5; Windows 95)
125 Mozilla/4.0 (compatible; MSIE 5.5; Windows 95; T312461)
126 Mozilla/4.0 (compatible; MSIE 5.5; Windows 95; YComp 5.0.0.0)
127 Mozilla/4.0 (compatible; MSIE 5.5; Windows 95; ie5.5cd_t-zone_0005)
128 Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)
129 Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; .NET CLR 1.0.3705)
130 Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; DigExt)
131 Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; H010818)
132 Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; MSIECrawler)
133 Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; MSN 6.1; MSNbMSFT; MSNmja-jp; MSNc00)
134 Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; MSOCD; AtHomeJP191)
135 Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; Q312461)
136 Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; Q312461; T312461)
137 Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; T312461)
138 Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; T312461; .NET CLR 1.0.3705)
139 Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; T312461; istb 641)
140 Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; T312461; istb 641; COM+ 1.0.2204)
141 Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; Win 9x 4.90
142 Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; Win 9x 4.90)
143 Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; Win 9x 4.90; .NET CLR 1.0.3705)
144 Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; Win 9x 4.90; Lunascape 0.98d)
145 Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; Win 9x 4.90; MSOCD; AtHomeJP0109)
146 Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; Win 9x 4.90; Q312461)
147 Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; Win 9x 4.90; Q312461; T312461)
148 Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; Win 9x 4.90; T312461)
149 Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; Win 9x 4.90; T312461; .NET CLR 1.0.3705)
150 Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; Win 9x 4.90; T312461; Lunascape 0
151 .99c)
152 Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; Win 9x 4.90; Unithink)
153 Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; Win 9x 4.90; telus.net_v5.0.1; Hotbar 4.0)
154 Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; telus.net_v5.0.1)
155 Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)
156 Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0; H010818)
157 Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0; H010818; CPT-IE401SP1; T312461)
158 Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0; SenseWave 1.0)
159 Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0; Suncorp Metway Ltd)
160 Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0; T312461)
161 Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0; T312461; .NET CLR 1.0.3705)
162 Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0; T312461; Lunascape 0.95a)
163 Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0; Yahoo! JAPAN Version Windows 95/NT CD-ROM Edition 1.0.)
164 Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
165 Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; (R1 1.1))
166 Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; (R1 1.1); (R1 1.3))
167 Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; (R1 1.3))
168 Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; .NET CLR 1.0.3705)
169 Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; AIRF)
170 Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; DigExt)
171 Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; FORJEIS55SP1)
172 Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; H010818)
173 Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; Hotbar 3.0; istb 641)
174 Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; Hotbar 4.1.7.0)
175 Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; Lunascape 0.98c)
176 Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; N_o_k_i_a)
177 Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; Q312461)
178 Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; Q312461; .NET CLR 1.0.3705)
179 Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; T312461)
180 Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; T312461; .NET CLR 1.0.3705)
181 Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; T312461; Hewle
Note: See TracBrowser for help on using the browser.