Index: trunk/extensions/WikimediaMobile/user_agent_test.js |
— | — | @@ -26,11 +26,17 @@ |
27 | 27 | shouldIgnore("Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.237 Safari/534.10"); |
28 | 28 | // iPad |
29 | 29 | shouldIgnore("Mozilla/5.0 (iPad; U; CPU OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B334b Safari/531.21.10"); |
| 30 | + shouldIgnore("Mozilla/5.0 (iPad; U; CPU OS 4_2 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C5101c Safari/6533.18.5"); |
30 | 31 | // iPhone 4 |
31 | 32 | shouldRedirect("Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_0 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.05 Mobile/8A293 Safari/6531.22.7"); |
32 | 33 | // Firefox |
33 | 34 | shouldIgnore("Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:2.0b9pre) Gecko/20101228 Firefox/4.0b9pre") |
34 | 35 | |
| 36 | + // Android Nexus One Phone |
| 37 | + shouldRedirect("Mozilla/5.0 (Linux; U; Android 2.2.1; en-us; Nexus One Build/FRG83) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"); |
| 38 | + // Android Table |
| 39 | + shouldIgnore("Mozilla/5.0 (Linux; U; Android 2.2.1; en-us; device Build/FRG83) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Safari/533.1") |
| 40 | + |
35 | 41 | // Fake test strings |
36 | 42 | |
37 | 43 | // Android, but only with Mobile |