From c177aa5e9eb953bcee4a2138b4027b916fe7f239 Mon Sep 17 00:00:00 2001 From: Jake Mc Date: Thu, 24 Oct 2013 16:27:03 +1000 Subject: [PATCH] Add tests for iPhone and iPod touch --- test/device-test.json | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/test/device-test.json b/test/device-test.json index ff48810..4cc9df4 100644 --- a/test/device-test.json +++ b/test/device-test.json @@ -28,4 +28,25 @@ "model" : "DROID RAZR 4G", "type" : "mobile" } -}] \ No newline at end of file + }, + { + "desc" : "iPhone", + "ua" : "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53", + "expect" : + { + "vendor" : "Apple", + "model" : "iPhone", + "type" : "mobile" + } + }, + { + "desc" : "Motorola Droid RAZR 4G", + "ua" : "Mozilla/5.0 (iPod touch; CPU iPhone OS 7_0_2 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A501 Safari/9537.53", + "expect" : + { + "vendor" : "Apple", + "model" : "iPod touch", + "type" : "mobile" + } + } +]