aboutsummaryrefslogtreecommitdiff
path: root/node_modules/ua-parser-js/test
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-12-10 21:51:33 +0100
committerFlorian Dold <florian.dold@gmail.com>2017-12-10 21:51:33 +0100
commit0469abd4a9c9270a1fdc962969e36e63699af8b4 (patch)
treef9864d4a4148621378958794cbbfdc2393733283 /node_modules/ua-parser-js/test
parent6947e79bbc258f7bc96af424ddb71a511f0c15a3 (diff)
upgrade dependencies
Diffstat (limited to 'node_modules/ua-parser-js/test')
-rw-r--r--node_modules/ua-parser-js/test/browser-test.json40
-rw-r--r--node_modules/ua-parser-js/test/device-test.json1284
-rw-r--r--node_modules/ua-parser-js/test/test.js15
3 files changed, 633 insertions, 706 deletions
diff --git a/node_modules/ua-parser-js/test/browser-test.json b/node_modules/ua-parser-js/test/browser-test.json
index 501de71c5..3efba3ff4 100644
--- a/node_modules/ua-parser-js/test/browser-test.json
+++ b/node_modules/ua-parser-js/test/browser-test.json
@@ -1,15 +1,5 @@
[
{
- "desc" : "Chrome Headless",
- "ua" : "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome Safari/537.36",
- "expect" :
- {
- "name" : "Chrome Headless",
- "version" : "HeadlessChrome",
- "major" : ""
- }
- },
- {
"desc" : "Android Browser on Galaxy Nexus",
"ua" : "Mozilla/5.0 (Linux; U; Android 4.0.2; en-us; Galaxy Nexus Build/ICL53F) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30",
"expect" :
@@ -150,6 +140,26 @@
}
},
{
+ "desc" : "Chrome Headless",
+ "ua" : "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome Safari/537.36",
+ "expect" :
+ {
+ "name" : "Chrome Headless",
+ "version" : "undefined",
+ "major" : "undefined"
+ }
+ },
+ {
+ "desc" : "Chrome Headless",
+ "ua" : "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/60.0.3112.113 Safari/537.36",
+ "expect" :
+ {
+ "name" : "Chrome Headless",
+ "version" : "60.0.3112.113",
+ "major" : "60"
+ }
+ },
+ {
"desc" : "Chrome WebView",
"ua" : "Mozilla/5.0 (Linux; Android 5.1.1; Nexus 5 Build/LMY48B; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/43.0.2357.65 Mobile Safari/537.36",
"expect" :
@@ -958,5 +968,15 @@
"version" : "6.5.8.2910",
"major" : "6"
}
+ },
+ {
+ "desc" : "GSA on iOS",
+ "ua" : "Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_2 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) GSA/30.1.161623614 Mobile/14F89 Safari/602.1",
+ "expect" :
+ {
+ "name" : "GSA",
+ "version" : "30.1.161623614",
+ "major" : "30"
+ }
}
]
diff --git a/node_modules/ua-parser-js/test/device-test.json b/node_modules/ua-parser-js/test/device-test.json
index 0660303dd..c1a3075a7 100644
--- a/node_modules/ua-parser-js/test/device-test.json
+++ b/node_modules/ua-parser-js/test/device-test.json
@@ -1,927 +1,819 @@
-[
- {
- "desc" : "Asus Nexus 7",
- "ua" : "Mozilla/5.0 (Linux; Android 4.4.2; Nexus 7 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.99 Safari/537.36",
- "expect" :
- {
- "vendor" : "Asus",
- "model" : "Nexus 7",
- "type" : "tablet"
+[{
+ "desc": "Asus Nexus 7",
+ "ua": "Mozilla/5.0 (Linux; Android 4.4.2; Nexus 7 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.99 Safari/537.36",
+ "expect": {
+ "vendor": "Asus",
+ "model": "Nexus 7",
+ "type": "tablet"
}
},
{
- "desc" : "Asus Padfone",
- "ua" : "Mozilla/5.0 (Linux; Android 4.1.1; PadFone 2 Build/JRO03L) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.117 Safari/537.36",
- "expect" :
- {
- "vendor" : "Asus",
- "model" : "PadFone",
- "type" : "tablet"
+ "desc": "Asus Padfone",
+ "ua": "Mozilla/5.0 (Linux; Android 4.1.1; PadFone 2 Build/JRO03L) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.117 Safari/537.36",
+ "expect": {
+ "vendor": "Asus",
+ "model": "PadFone",
+ "type": "tablet"
}
},
{
- "desc" : "Desktop (IE11 with Tablet string)",
- "ua" : "Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729; Tablet PC 2.0; GWX:MANAGED; rv:11.0) like Gecko",
- "expect" :
- {
- "vendor" : "undefined",
- "model" : "undefined",
- "type" : "undefined"
+ "desc": "Desktop (IE11 with Tablet string)",
+ "ua": "Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729; Tablet PC 2.0; GWX:MANAGED; rv:11.0) like Gecko",
+ "expect": {
+ "vendor": "undefined",
+ "model": "undefined",
+ "type": "undefined"
}
},
{
- "desc" : "HTC Evo Shift 4G",
- "ua" : "Mozilla/5.0 (Linux; U; Android 2.3.4; en-us; Sprint APA7373KT Build/GRJ22) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0",
- "expect" :
- {
- "vendor" : "HTC",
- "model" : "Evo Shift 4G",
- "type" : "mobile"
+ "desc": "HTC Evo Shift 4G",
+ "ua": "Mozilla/5.0 (Linux; U; Android 2.3.4; en-us; Sprint APA7373KT Build/GRJ22) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0",
+ "expect": {
+ "vendor": "HTC",
+ "model": "Evo Shift 4G",
+ "type": "mobile"
}
},
{
- "desc" : "HTC Nexus 9",
- "ua" : "Mozilla/5.0 (Linux; Android 5.0; Nexus 9 Build/LRX21R) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Mobile Crosswalk/7.36.154.13 Safari/537.36",
- "expect" :
- {
- "vendor" : "HTC",
- "model" : "Nexus 9",
- "type" : "tablet"
+ "desc": "HTC Nexus 9",
+ "ua": "Mozilla/5.0 (Linux; Android 5.0; Nexus 9 Build/LRX21R) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Mobile Crosswalk/7.36.154.13 Safari/537.36",
+ "expect": {
+ "vendor": "HTC",
+ "model": "Nexus 9",
+ "type": "tablet"
}
},
{
- "desc" : "Huawei Honor",
- "ua" : "Mozilla/5.0 (Linux; U; Android 2.3; xx-xx; U8860 Build/HuaweiU8860) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1",
- "expect" :
- {
- "vendor" : "Huawei",
- "model" : "U8860",
- "type" : "mobile"
+ "desc": "Huawei Honor",
+ "ua": "Mozilla/5.0 (Linux; U; Android 2.3; xx-xx; U8860 Build/HuaweiU8860) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1",
+ "expect": {
+ "vendor": "Huawei",
+ "model": "U8860",
+ "type": "mobile"
}
},
{
- "desc" : "Huawei Nexus 6P",
- "ua" : "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 6P Build/MTC19V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.81 Mobile Safari/537",
- "expect" :
- {
- "vendor" : "Huawei",
- "model" : "Nexus 6P",
- "type" : "mobile"
+ "desc": "Huawei Nexus 6P",
+ "ua": "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 6P Build/MTC19V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.81 Mobile Safari/537",
+ "expect": {
+ "vendor": "Huawei",
+ "model": "Nexus 6P",
+ "type": "mobile"
}
},
{
- "desc" : "Huawei P10",
- "ua" : "Mozilla/5.0 (Linux; Android 7.0; VTR-L09 Build/HUAWEIVTR-L09; xx-xx) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/56.0.2924.87 Mobile Safari/537.36",
- "expect" :
- {
- "vendor" : "Huawei",
- "model" : "VTR-L09",
- "type" : "mobile"
+ "desc": "Huawei P10",
+ "ua": "Mozilla/5.0 (Linux; Android 7.0; VTR-L09 Build/HUAWEIVTR-L09; xx-xx) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/56.0.2924.87 Mobile Safari/537.36",
+ "expect": {
+ "vendor": "Huawei",
+ "model": "VTR-L09",
+ "type": "mobile"
}
},
{
- "desc" : "Huawei Y3II",
- "ua" : "Mozilla/5.0 (Linux; U; Android 5.1; xx-xx; HUAWEI LUA-L03 Build/HUAWEILUA-L03) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/39.0.0.0 Mobile Safari/537.36",
- "expect" :
- {
- "vendor" : "Huawei",
- "model" : "LUA-L03",
- "type" : "mobile"
+ "desc": "Huawei Y3II",
+ "ua": "Mozilla/5.0 (Linux; U; Android 5.1; xx-xx; HUAWEI LUA-L03 Build/HUAWEILUA-L03) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/39.0.0.0 Mobile Safari/537.36",
+ "expect": {
+ "vendor": "Huawei",
+ "model": "LUA-L03",
+ "type": "mobile"
}
},
{
- "desc" : "iPod",
- "ua" : "Mozilla/5.0 (iPod touch; CPU iPhone OS 7_0_4 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11B554a Safari/9537.53",
- "expect" :
- {
- "vendor" : "Apple",
- "model" : "iPod touch",
- "type" : "mobile"
+ "desc": "iPod",
+ "ua": "Mozilla/5.0 (iPod touch; CPU iPhone OS 7_0_4 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11B554a Safari/9537.53",
+ "expect": {
+ "vendor": "Apple",
+ "model": "iPod touch",
+ "type": "mobile"
}
},
{
- "desc" : "LG Nexus 4",
- "ua" : "Mozilla/5.0 (Linux; Android 4.2.1; Nexus 4 Build/JOP40D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19",
- "expect" :
- {
- "vendor" : "LG",
- "model" : "Nexus 4",
- "type" : "mobile"
+ "desc": "LG Nexus 4",
+ "ua": "Mozilla/5.0 (Linux; Android 4.2.1; Nexus 4 Build/JOP40D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19",
+ "expect": {
+ "vendor": "LG",
+ "model": "Nexus 4",
+ "type": "mobile"
}
},
{
- "desc" : "LG Nexus 5",
- "ua" : "Mozilla/5.0 (Linux; Android 4.2.1; en-us; Nexus 5 Build/JOP40D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19",
- "expect" :
- {
- "vendor" : "LG",
- "model" : "Nexus 5",
- "type" : "mobile"
+ "desc": "LG Nexus 5",
+ "ua": "Mozilla/5.0 (Linux; Android 4.2.1; en-us; Nexus 5 Build/JOP40D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19",
+ "expect": {
+ "vendor": "LG",
+ "model": "Nexus 5",
+ "type": "mobile"
}
},
{
- "desc" : "Meizu M5 Note",
- "ua" : "Mozilla/5.0 (Linux; Android 6.0; M5 Note Build/MRA58K; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/53.0.2785.49 Mobile MQQBrowser/6.2 TBS/043024 Safari/537.36 MicroMessenger/6.5.7.1040 NetType/WIFI Language/zh_CN",
- "expect" :
- {
- "vendor" : "Meizu",
- "model" : "M5 Note",
- "type" : "tablet"
+ "desc": "Meizu M5 Note",
+ "ua": "Mozilla/5.0 (Linux; Android 6.0; M5 Note Build/MRA58K; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/53.0.2785.49 Mobile MQQBrowser/6.2 TBS/043024 Safari/537.36 MicroMessenger/6.5.7.1040 NetType/WIFI Language/zh_CN",
+ "expect": {
+ "vendor": "Meizu",
+ "model": "M5 Note",
+ "type": "tablet"
}
},
{
- "desc" : "Microsoft Lumia 950",
- "ua" : "Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; Microsoft; Lumia 950) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Mobile Safari/537.36 Edge/13.10586",
- "expect" :
- {
- "vendor" : "Microsoft",
- "model" : "Lumia 950",
- "type" : "mobile"
+ "desc": "Microsoft Lumia 950",
+ "ua": "Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; Microsoft; Lumia 950) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Mobile Safari/537.36 Edge/13.10586",
+ "expect": {
+ "vendor": "Microsoft",
+ "model": "Lumia 950",
+ "type": "mobile"
}
},
{
- "desc" : "Motorola Moto X",
- "ua" : "Mozilla/5.0 (Linux; Android 4.4.4; XT1097 Build/KXE21.187-38) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.109 Mobile Safari/537.36",
- "expect" :
- {
- "vendor" : "Motorola",
- "model" : "XT1097",
- "type" : "mobile"
+ "desc": "Motorola Moto X",
+ "ua": "Mozilla/5.0 (Linux; Android 4.4.4; XT1097 Build/KXE21.187-38) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.109 Mobile Safari/537.36",
+ "expect": {
+ "vendor": "Motorola",
+ "model": "XT1097",
+ "type": "mobile"
}
},
{
- "desc" : "Motorola Nexus 6",
- "ua" : "Mozilla/5.0 (Linux; Android 5.1.1; Nexus 6 Build/LYZ28E) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.20 Mobile Safari/537.36",
- "expect" :
- {
- "vendor" : "Motorola",
- "model" : "Nexus 6",
- "type" : "mobile"
+ "desc": "Motorola Nexus 6",
+ "ua": "Mozilla/5.0 (Linux; Android 5.1.1; Nexus 6 Build/LYZ28E) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.20 Mobile Safari/537.36",
+ "expect": {
+ "vendor": "Motorola",
+ "model": "Nexus 6",
+ "type": "mobile"
}
},
{
- "desc" : "Motorola Droid RAZR 4G",
- "ua" : "Mozilla/5.0 (Linux; U; Android 2.3; xx-xx; DROID RAZR 4G Build/6.5.1-73_DHD-11_M1-29) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1",
- "expect" :
- {
- "vendor" : "Motorola",
- "model" : "DROID RAZR 4G",
- "type" : "mobile"
+ "desc": "Motorola Droid RAZR 4G",
+ "ua": "Mozilla/5.0 (Linux; U; Android 2.3; xx-xx; DROID RAZR 4G Build/6.5.1-73_DHD-11_M1-29) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1",
+ "expect": {
+ "vendor": "Motorola",
+ "model": "DROID RAZR 4G",
+ "type": "mobile"
}
},
{
- "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": "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"
+ "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"
}
},
{
- "desc" : "Moto X",
- "ua" : "Mozilla/5.0 (Linux; U; Android 4.2; xx-xx; XT1058 Build/13.9.0Q2.X-70-GHOST-ATT_LE-2) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30",
- "expect" :
- {
- "vendor" : "Motorola",
- "model" : "XT1058",
- "type" : "mobile"
+ "desc": "Moto X",
+ "ua": "Mozilla/5.0 (Linux; U; Android 4.2; xx-xx; XT1058 Build/13.9.0Q2.X-70-GHOST-ATT_LE-2) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30",
+ "expect": {
+ "vendor": "Motorola",
+ "model": "XT1058",
+ "type": "mobile"
}
},
{
- "desc" : "Nokia3xx",
- "ua" : "Nokia303/14.87 CLDC-1.1",
- "expect" :
- {
- "vendor" : "Nokia",
- "model" : "303",
- "type" : "mobile"
+ "desc": "Nokia3xx",
+ "ua": "Nokia303/14.87 CLDC-1.1",
+ "expect": {
+ "vendor": "Nokia",
+ "model": "303",
+ "type": "mobile"
}
},
{
- "desc" : "OnePlus One",
- "ua" : "Mozilla/5.0 (Linux; Android 4.4.4; A0001 Build/KTU84Q) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.59 Mobile Safari/537.36",
- "expect" :
- {
- "vendor" : "OnePlus",
- "model" : "1",
- "type" : "mobile"
+ "desc": "OnePlus One",
+ "ua": "Mozilla/5.0 (Linux; Android 4.4.4; A0001 Build/KTU84Q) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.59 Mobile Safari/537.36",
+ "expect": {
+ "vendor": "OnePlus",
+ "model": "1",
+ "type": "mobile"
}
},
{
- "desc" : "OPPO R7s",
- "ua" : "Mozilla/5.0 (Linux; U; Android 4.4.4; zh-cn; OPPO R7s Build/KTU84P) AppleWebKit/537.36 (KHTML, like Gecko)Version/4.0 Chrome/37.0.0.0 MQQBrowser/7.1 Mobile Safari/537.36",
- "expect" :
- {
- "vendor" : "OPPO",
- "model" : "R7s",
- "type" : "mobile"
+ "desc": "OPPO R7s",
+ "ua": "Mozilla/5.0 (Linux; U; Android 4.4.4; zh-cn; OPPO R7s Build/KTU84P) AppleWebKit/537.36 (KHTML, like Gecko)Version/4.0 Chrome/37.0.0.0 MQQBrowser/7.1 Mobile Safari/537.36",
+ "expect": {
+ "vendor": "OPPO",
+ "model": "R7s",
+ "type": "mobile"
}
},
{
- "desc" : "Philips SmartTV",
- "ua" : "Opera/9.80 HbbTV/1.1.1 (; Philips; ; ; ; ) NETTV/4.0.2; en) Version/11.60",
- "expect" :
- {
- "vendor" : "Philips",
- "model" : "",
- "type" : "smarttv"
+ "desc": "Philips SmartTV",
+ "ua": "Opera/9.80 HbbTV/1.1.1 (; Philips; ; ; ; ) NETTV/4.0.2; en) Version/11.60",
+ "expect": {
+ "vendor": "Philips",
+ "model": "",
+ "type": "smarttv"
}
},
{
- "desc" : "Kindle Fire HD",
- "ua" : "Mozilla/5.0 (Linux; U; Android 4.0.3; en-us; KFTT Build/IML74K) AppleWebKit/535.19 (KHTML, like Gecko) Silk/3.4 Mobile Safari/535.19 Silk-Accelerated=true",
- "expect" :
- {
- "vendor" : "Amazon",
- "model" : "KFTT",
- "type" : "tablet"
+ "desc": "Kindle Fire HD",
+ "ua": "Mozilla/5.0 (Linux; U; Android 4.0.3; en-us; KFTT Build/IML74K) AppleWebKit/535.19 (KHTML, like Gecko) Silk/3.4 Mobile Safari/535.19 Silk-Accelerated=true",
+ "expect": {
+ "vendor": "Amazon",
+ "model": "KFTT",
+ "type": "tablet"
}
},
{
- "desc" : "Samsung Galaxy Note 8",
- "ua" : "Mozilla/5.0 (Linux; Android 4.2.2; GT-N5100 Build/JDQ39) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.141 Safari/537.36",
- "expect" :
- {
- "vendor" : "Samsung",
- "model" : "GT-N5100",
- "type" : "tablet"
+ "desc": "Samsung Galaxy Note 8",
+ "ua": "Mozilla/5.0 (Linux; Android 4.2.2; GT-N5100 Build/JDQ39) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.141 Safari/537.36",
+ "expect": {
+ "vendor": "Samsung",
+ "model": "GT-N5100",
+ "type": "tablet"
}
},
{
- "desc" : "Samsung SM-C5000",
- "ua" : "Mozilla/5.0 (Linux; Android 6.0.1; SM-C5000 Build/MMB29M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/51.0.2704.81 Mobile Safari/537.36 wkbrowser 4.1.35 3065",
- "expect" :
- {
- "vendor" : "Samsung",
- "model" : "SM-C5000",
- "type" : "mobile"
+ "desc": "Samsung SM-C5000",
+ "ua": "Mozilla/5.0 (Linux; Android 6.0.1; SM-C5000 Build/MMB29M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/51.0.2704.81 Mobile Safari/537.36 wkbrowser 4.1.35 3065",
+ "expect": {
+ "vendor": "Samsung",
+ "model": "SM-C5000",
+ "type": "mobile"
}
},
{
- "desc" : "Samsung SM-T231",
- "ua" : "Mozilla/5.0 (Linux; Android 4.4.2; SM-T231 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.135 Safari/537.36",
- "expect" :
- {
- "vendor" : "Samsung",
- "model" : "SM-T231",
- "type" : "tablet"
+ "desc": "Samsung SM-T231",
+ "ua": "Mozilla/5.0 (Linux; Android 4.4.2; SM-T231 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.135 Safari/537.36",
+ "expect": {
+ "vendor": "Samsung",
+ "model": "SM-T231",
+ "type": "tablet"
}
},
{
- "desc" : "Samsung SM-T700",
- "ua" : "Mozilla/5.0 (Linux; Android 4.4.2; SM-T700 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.135 Safari/537.36",
- "expect" :
- {
- "vendor" : "Samsung",
- "model" : "SM-T700",
- "type" : "tablet"
+ "desc": "Samsung SM-T700",
+ "ua": "Mozilla/5.0 (Linux; Android 4.4.2; SM-T700 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.135 Safari/537.36",
+ "expect": {
+ "vendor": "Samsung",
+ "model": "SM-T700",
+ "type": "tablet"
}
},
{
- "desc" : "Samsung SM-T520",
- "ua" : "Mozilla/5.0 (Linux; Android 4.4.2; SM-T520 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.135 Safari/537.36",
- "expect" :
- {
- "vendor" : "Samsung",
- "model" : "SM-T520",
- "type" : "tablet"
+ "desc": "Samsung SM-T520",
+ "ua": "Mozilla/5.0 (Linux; Android 4.4.2; SM-T520 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.135 Safari/537.36",
+ "expect": {
+ "vendor": "Samsung",
+ "model": "SM-T520",
+ "type": "tablet"
}
},
{
- "desc" : "Samsung SmartTV2011",
- "ua" : "HbbTV/1.1.1 (;;;;;) Maple;2011",
- "expect" :
- {
- "vendor" : "Samsung",
- "model" : "SmartTV2011",
- "type" : "smarttv"
+ "desc": "Samsung SmartTV2011",
+ "ua": "HbbTV/1.1.1 (;;;;;) Maple;2011",
+ "expect": {
+ "vendor": "Samsung",
+ "model": "SmartTV2011",
+ "type": "smarttv"
}
},
{
- "desc" : "Samsung SmartTV2012",
- "ua" : "HbbTV/1.1.1 (;Samsung;SmartTV2012;;;) WebKit",
- "expect" :
- {
- "vendor" : "Samsung",
- "model" : "SmartTV2012",
- "type" : "smarttv"
+ "desc": "Samsung SmartTV2012",
+ "ua": "HbbTV/1.1.1 (;Samsung;SmartTV2012;;;) WebKit",
+ "expect": {
+ "vendor": "Samsung",
+ "model": "SmartTV2012",
+ "type": "smarttv"
}
},
{
- "desc" : "Samsung SmartTV2014",
- "ua" : "HbbTV/1.1.1 (;Samsung;SmartTV2014;T-NT14UDEUC-1060.4;;) WebKit",
- "expect" :
- {
- "vendor" : "Samsung",
- "model" : "SmartTV2014",
- "type" : "smarttv"
+ "desc": "Samsung SmartTV2014",
+ "ua": "HbbTV/1.1.1 (;Samsung;SmartTV2014;T-NT14UDEUC-1060.4;;) WebKit",
+ "expect": {
+ "vendor": "Samsung",
+ "model": "SmartTV2014",
+ "type": "smarttv"
}
},
{
- "desc" : "Samsung SmartTV",
- "ua" : "Mozilla/5.0 (SMART-TV; Linux; Tizen 2.3) AppleWebkit/538.1 (KHTML, like Gecko) SamsungBrowser/1.0 TV Safari/538.1",
- "expect" :
- {
- "vendor" : "Samsung",
- "model" : "undefined",
- "type" : "smarttv"
+ "desc": "Samsung SmartTV",
+ "ua": "Mozilla/5.0 (SMART-TV; Linux; Tizen 2.3) AppleWebkit/538.1 (KHTML, like Gecko) SamsungBrowser/1.0 TV Safari/538.1",
+ "expect": {
+ "vendor": "Samsung",
+ "model": "undefined",
+ "type": "smarttv"
}
},
{
- "desc" : "Sony C5303 (Xperia SP)",
- "ua" : "Mozilla/5.0 (Linux; Android 4.3; C5303 Build/12.1.A.1.205) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.93 Mobile Safari/537.36",
- "expect" :
- {
- "vendor" : "Sony",
- "model" : "C5303",
- "type" : "mobile"
+ "desc": "Sony C5303 (Xperia SP)",
+ "ua": "Mozilla/5.0 (Linux; Android 4.3; C5303 Build/12.1.A.1.205) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.93 Mobile Safari/537.36",
+ "expect": {
+ "vendor": "Sony",
+ "model": "C5303",
+ "type": "mobile"
}
},
{
- "desc" : "Sony SO-02F (Xperia Z1 F)",
- "ua" : "Mozilla/5.0 (Linux; Android 4.2.2; SO-02F Build/14.1.H.2.119) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.114 Mobile Safari/537.36",
- "expect" :
- {
- "vendor" : "Sony",
- "model" : "SO-02F",
- "type" : "mobile"
+ "desc": "Sony SO-02F (Xperia Z1 F)",
+ "ua": "Mozilla/5.0 (Linux; Android 4.2.2; SO-02F Build/14.1.H.2.119) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.114 Mobile Safari/537.36",
+ "expect": {
+ "vendor": "Sony",
+ "model": "SO-02F",
+ "type": "mobile"
}
},
{
- "desc" : "Sony D6653 (Xperia Z3)",
- "ua" : "Mozilla/5.0 (Linux; Android 4.4; D6653 Build/23.0.A.0.376) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.141 Mobile Safari/537.36",
- "expect" :
- {
- "vendor" : "Sony",
- "model" : "D6653",
- "type" : "mobile"
+ "desc": "Sony D6653 (Xperia Z3)",
+ "ua": "Mozilla/5.0 (Linux; Android 4.4; D6653 Build/23.0.A.0.376) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.141 Mobile Safari/537.36",
+ "expect": {
+ "vendor": "Sony",
+ "model": "D6653",
+ "type": "mobile"
}
},
{
- "desc" : "Sony Xperia SOL25 (ZL2)",
- "ua" : "Mozilla/5.0 (Linux; U; Android 4.4; SOL25 Build/17.1.1.C.1.64) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30",
- "expect" :
- {
- "vendor" : "Sony",
- "model" : "SOL25",
- "type" : "mobile"
+ "desc": "Sony Xperia SOL25 (ZL2)",
+ "ua": "Mozilla/5.0 (Linux; U; Android 4.4; SOL25 Build/17.1.1.C.1.64) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30",
+ "expect": {
+ "vendor": "Sony",
+ "model": "SOL25",
+ "type": "mobile"
}
},
{
- "desc" : "Sony Xperia SP",
- "ua" : "Mozilla/5.0 (Linux; Android 4.3; C5302 Build/12.1.A.1.201) AppleWebkit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.114 Mobile Safari/537.36",
- "expect" :
- {
- "vendor" : "Sony",
- "model" : "C5302",
- "type" : "mobile"
+ "desc": "Sony Xperia SP",
+ "ua": "Mozilla/5.0 (Linux; Android 4.3; C5302 Build/12.1.A.1.201) AppleWebkit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.114 Mobile Safari/537.36",
+ "expect": {
+ "vendor": "Sony",
+ "model": "C5302",
+ "type": "mobile"
}
},
{
- "desc" : "Sony SGP521 (Xperia Z2 Tablet)",
- "ua" : "Mozilla/5.0 (Linux; Android 4.4; SGP521 Build/17.1.A.0.432) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.99 Safari/537.36",
- "expect" :
- {
- "vendor" : "Sony",
- "model" : "Xperia Tablet",
- "type" : "tablet"
+ "desc": "Sony SGP521 (Xperia Z2 Tablet)",
+ "ua": "Mozilla/5.0 (Linux; Android 4.4; SGP521 Build/17.1.A.0.432) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.99 Safari/537.36",
+ "expect": {
+ "vendor": "Sony",
+ "model": "Xperia Tablet",
+ "type": "tablet"
}
},
{
- "desc" : "Sony Tablet S",
- "ua" : "Mozilla/5.0 (Linux; U; Android 3.1; Sony Tablet S Build/THMAS10000) AppleWebKit/534.13 (KHTML, like Gecko) Version/4.0 Safari/534.13",
- "expect" :
- {
- "vendor" : "Sony",
- "model" : "Xperia Tablet",
- "type" : "tablet"
+ "desc": "Sony Tablet S",
+ "ua": "Mozilla/5.0 (Linux; U; Android 3.1; Sony Tablet S Build/THMAS10000) AppleWebKit/534.13 (KHTML, like Gecko) Version/4.0 Safari/534.13",
+ "expect": {
+ "vendor": "Sony",
+ "model": "Xperia Tablet",
+ "type": "tablet"
}
},
{
- "desc" : "Sony Tablet Z LTE",
- "ua" : "Mozilla/5.0 (Linux; U; Android 4.1; SonySGP321 Build/10.2.C.0.143) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Safari/534.30",
- "expect" :
- {
- "vendor" : "Sony",
- "model" : "Xperia Tablet",
- "type" : "tablet"
+ "desc": "Sony Tablet Z LTE",
+ "ua": "Mozilla/5.0 (Linux; U; Android 4.1; SonySGP321 Build/10.2.C.0.143) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Safari/534.30",
+ "expect": {
+ "vendor": "Sony",
+ "model": "Xperia Tablet",
+ "type": "tablet"
}
},
{
- "desc" : "Xiaomi 2013023",
- "ua" : "Mozilla/5.0 (Linux; U; Android 4.2.2; en-US; 2013023 Build/HM2013023) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 UCBrowser/10.0.1.512 U3/0.8.0 Mobile Safari/533.1",
- "expect" :
- {
- "vendor" : "Xiaomi",
- "model" : "2013023",
- "type" : "mobile"
+ "desc": "Xiaomi 2013023",
+ "ua": "Mozilla/5.0 (Linux; U; Android 4.2.2; en-US; 2013023 Build/HM2013023) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 UCBrowser/10.0.1.512 U3/0.8.0 Mobile Safari/533.1",
+ "expect": {
+ "vendor": "Xiaomi",
+ "model": "2013023",
+ "type": "mobile"
}
},
{
- "desc" : "Xiaomi Hongmi Note 1W",
- "ua" : "Mozilla/5.0 (Linux; U; Android 4.2.2; zh-CN; HM NOTE 1W Build/JDQ39) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 UCBrowser/9.7.9.439 U3/0.8.0 Mobile Safari/533.1",
- "expect" :
- {
- "vendor" : "Xiaomi",
- "model" : "HM NOTE 1W",
- "type" : "mobile"
+ "desc": "Xiaomi Hongmi Note 1W",
+ "ua": "Mozilla/5.0 (Linux; U; Android 4.2.2; zh-CN; HM NOTE 1W Build/JDQ39) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 UCBrowser/9.7.9.439 U3/0.8.0 Mobile Safari/533.1",
+ "expect": {
+ "vendor": "Xiaomi",
+ "model": "HM NOTE 1W",
+ "type": "mobile"
}
},
{
- "desc" : "Xiaomi Mi 3C",
- "ua" : "Mozilla/5.0 (Linux; U; Android 4.3; zh-CN; MI 3C Build/JLS36C) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 UCBrowser/9.7.9.439 U3/0.8.0 Mobile Safari/533.1",
- "expect" :
- {
- "vendor" : "Xiaomi",
- "model" : "MI 3C",
- "type" : "mobile"
+ "desc": "Xiaomi Mi 3C",
+ "ua": "Mozilla/5.0 (Linux; U; Android 4.3; zh-CN; MI 3C Build/JLS36C) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 UCBrowser/9.7.9.439 U3/0.8.0 Mobile Safari/533.1",
+ "expect": {
+ "vendor": "Xiaomi",
+ "model": "MI 3C",
+ "type": "mobile"
}
},
{
- "desc" : "Xiaomi Mi Note",
- "ua" : "Mozilla/5.0 (Linux; Android 4.4.4; MI NOTE LTE Build/KTU84P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.76 Mobile Safari/537.36",
- "expect" :
- {
- "vendor" : "Xiaomi",
- "model" : "MI NOTE LTE",
- "type" : "mobile"
+ "desc": "Xiaomi Mi Note",
+ "ua": "Mozilla/5.0 (Linux; Android 4.4.4; MI NOTE LTE Build/KTU84P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.76 Mobile Safari/537.36",
+ "expect": {
+ "vendor": "Xiaomi",
+ "model": "MI NOTE LTE",
+ "type": "mobile"
}
},
{
- "desc" : "Xiaomi Mi One Plus",
- "ua" : "Mozilla/5.0 (Linux; U; Android 4.0.4; en-us; MI-ONE Plus Build/IMM76D) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30",
- "expect" :
- {
- "vendor" : "Xiaomi",
- "model" : "MI-ONE Plus",
- "type" : "mobile"
+ "desc": "Xiaomi Mi One Plus",
+ "ua": "Mozilla/5.0 (Linux; U; Android 4.0.4; en-us; MI-ONE Plus Build/IMM76D) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30",
+ "expect": {
+ "vendor": "Xiaomi",
+ "model": "MI-ONE Plus",
+ "type": "mobile"
}
},
{
- "desc" : "PlayStation 4",
- "ua" : "Mozilla/5.0 (PlayStation 4 3.00) AppleWebKit/537.73 (KHTML, like Gecko)",
- "expect" :
- {
- "vendor" : "Sony",
- "model" : "PlayStation 4",
- "type" : "console"
+ "desc": "PlayStation 4",
+ "ua": "Mozilla/5.0 (PlayStation 4 3.00) AppleWebKit/537.73 (KHTML, like Gecko)",
+ "expect": {
+ "vendor": "Sony",
+ "model": "PlayStation 4",
+ "type": "console"
}
},
{
- "desc" : "Galaxy Nexus",
- "ua" : "Mozilla/5.0 (Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Mobile Safari/535.19",
- "expect" :
- {
- "vendor" : "Samsung",
- "model" : "Galaxy Nexus",
- "type" : "mobile"
+ "desc": "Galaxy Nexus",
+ "ua": "Mozilla/5.0 (Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Mobile Safari/535.19",
+ "expect": {
+ "vendor": "Samsung",
+ "model": "Galaxy Nexus",
+ "type": "mobile"
}
},
{
- "desc" : "Samsung Galaxy S5",
- "ua" : "Mozilla/5.0 (Linux; Android 5.0; SM-G900F Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.78 Mobile Safari/537.36",
- "expect" :
- {
- "vendor" : "Samsung",
- "model" : "SM-G900F",
- "type" : "mobile"
+ "desc": "Samsung Galaxy S5",
+ "ua": "Mozilla/5.0 (Linux; Android 5.0; SM-G900F Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.78 Mobile Safari/537.36",
+ "expect": {
+ "vendor": "Samsung",
+ "model": "SM-G900F",
+ "type": "mobile"
}
},
{
- "desc" : "Samsung Galaxy S6",
- "ua" : "Mozilla/5.0 (Linux; Android 4.4.2; SM-G920I Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.135 Safari/537.36",
- "expect" :
- {
- "vendor" : "Samsung",
- "model" : "SM-G920I",
- "type" : "mobile"
+ "desc": "Samsung Galaxy S6",
+ "ua": "Mozilla/5.0 (Linux; Android 4.4.2; SM-G920I Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.135 Safari/537.36",
+ "expect": {
+ "vendor": "Samsung",
+ "model": "SM-G920I",
+ "type": "mobile"
}
},
{
- "desc" : "Samsung Galaxy S6 Edge",
- "ua" : "Mozilla/5.0 (Linux; Android 4.4.2; SM-G925I Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.135 Safari/537.36",
- "expect" :
- {
- "vendor" : "Samsung",
- "model" : "SM-G925I",
- "type" : "mobile"
+ "desc": "Samsung Galaxy S6 Edge",
+ "ua": "Mozilla/5.0 (Linux; Android 4.4.2; SM-G925I Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.135 Safari/537.36",
+ "expect": {
+ "vendor": "Samsung",
+ "model": "SM-G925I",
+ "type": "mobile"
}
},
{
- "desc" : "Samsung Galaxy Note 5 Chrome",
- "ua" : "Mozilla/5.0 (Linux; Android 5.1.1; SM-N920C Build/LMY47X) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.91 Mobile Safari/537.36",
- "expect" :
- {
- "vendor" : "Samsung",
- "model" : "SM-N920C",
- "type" : "mobile"
+ "desc": "Samsung Galaxy Note 5 Chrome",
+ "ua": "Mozilla/5.0 (Linux; Android 5.1.1; SM-N920C Build/LMY47X) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.91 Mobile Safari/537.36",
+ "expect": {
+ "vendor": "Samsung",
+ "model": "SM-N920C",
+ "type": "mobile"
}
- }
-,
+ },
{
- "desc" : "Samsung Galaxy Note 5 Samsung Browser",
- "ua" : "Mozilla/5.0 (Linux; Android 5.1.1; SAMSUNG SM-N920C Build/LMY47X) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/4.0 Chrome/44.0.2403.133 Mobile Safari/537.36",
- "expect" :
- {
- "vendor" : "Samsung",
- "model" : "SM-N920C",
- "type" : "mobile"
+ "desc": "Samsung Galaxy Note 5 Samsung Browser",
+ "ua": "Mozilla/5.0 (Linux; Android 5.1.1; SAMSUNG SM-N920C Build/LMY47X) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/4.0 Chrome/44.0.2403.133 Mobile Safari/537.36",
+ "expect": {
+ "vendor": "Samsung",
+ "model": "SM-N920C",
+ "type": "mobile"
}
- }
-,
+ },
{
- "desc" : "Google Chromecast",
- "ua" : "Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.84 Safari/537.36 CrKey/1.22.79313",
- "expect" :
- {
- "vendor" : "Google",
- "model" : "Chromecast"
+ "desc": "Google Chromecast",
+ "ua": "Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.84 Safari/537.36 CrKey/1.22.79313",
+ "expect": {
+ "vendor": "Google",
+ "model": "Chromecast"
}
- }
-,
+ },
{
- "desc" : "Google Pixel C",
- "ua" : "Mozilla/5.0 (Linux; Android 7.0; Pixel C Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/52.0.2743.98 Safari/537.36",
- "expect" :
- {
- "vendor" : "Google",
- "model" : "Pixel C",
- "type" : "tablet"
+ "desc": "Google Pixel C",
+ "ua": "Mozilla/5.0 (Linux; Android 7.0; Pixel C Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/52.0.2743.98 Safari/537.36",
+ "expect": {
+ "vendor": "Google",
+ "model": "Pixel C",
+ "type": "tablet"
}
- }
-,
+ },
{
- "desc" : "Google Pixel",
- "ua" : "Mozilla/5.0 (Linux; Android 7.1; Pixel Build/NDE63V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.85 Mobile Safari/537.36",
- "expect" :
- {
- "vendor" : "Google",
- "model" : "Pixel",
- "type" : "mobile"
+ "desc": "Google Pixel",
+ "ua": "Mozilla/5.0 (Linux; Android 7.1; Pixel Build/NDE63V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.85 Mobile Safari/537.36",
+ "expect": {
+ "vendor": "Google",
+ "model": "Pixel",
+ "type": "mobile"
}
- }
-,
+ },
{
- "desc" : "Google Pixel",
- "ua" : "Mozilla/5.0 (Linux; Android 7.1; Pixel XL Build/NDE63X) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.85 Mobile Safari/537.36",
- "expect" :
- {
- "vendor" : "Google",
- "model" : "Pixel XL",
- "type" : "mobile"
+ "desc": "Google Pixel",
+ "ua": "Mozilla/5.0 (Linux; Android 7.1; Pixel XL Build/NDE63X) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.85 Mobile Safari/537.36",
+ "expect": {
+ "vendor": "Google",
+ "model": "Pixel XL",
+ "type": "mobile"
}
- }
-,
+ },
{
- "desc" : "Generic Android Device",
- "ua" : "Mozilla/5.0 (Linux; U; Android 6.0.1; i980 Build/MRA58K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36",
- "expect" :
- {
- "vendor" : "Generic",
- "model" : "Android 6.0.1"
+ "desc": "Generic Android Device",
+ "ua": "Mozilla/5.0 (Linux; U; Android 6.0.1; i980 Build/MRA58K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36",
+ "expect": {
+ "vendor": "Generic",
+ "model": "Android 6.0.1"
}
- }
-,
+ },
{
- "desc" : "LG VK Series Tablet",
- "ua" : "Mozilla/5.0 (Linux; Android 5.0.2; VK700 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.84 Safari/537.36",
- "expect" :
- {
- "vendor" : "LG",
- "model" : "VK700",
- "type" : "tablet"
+ "desc": "LG VK Series Tablet",
+ "ua": "Mozilla/5.0 (Linux; Android 5.0.2; VK700 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.84 Safari/537.36",
+ "expect": {
+ "vendor": "LG",
+ "model": "VK700",
+ "type": "tablet"
}
- }
-,
+ },
{
- "desc" : "LG LK Series Tablet",
- "ua" : "Mozilla/5.0 (Linux; Android 5.0.1; LGLK430 Build/LRX21Y) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/38.0.2125.102 Safari/537.36",
- "expect" :
- {
- "vendor" : "LG",
- "model" : "LK430",
- "type" : "tablet"
+ "desc": "LG LK Series Tablet",
+ "ua": "Mozilla/5.0 (Linux; Android 5.0.1; LGLK430 Build/LRX21Y) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/38.0.2125.102 Safari/537.36",
+ "expect": {
+ "vendor": "LG",
+ "model": "LK430",
+ "type": "tablet"
}
- }
-,
+ },
{
- "desc" : "RCA Voyager III Tablet",
- "ua" : "Mozilla/5.0 (Linux; Android 6.0.1; RCT6973W43 Build/MMB29M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36",
- "expect" :
- {
- "vendor" : "RCA",
- "model" : "RCT6973W43",
- "type" : "tablet"
+ "desc": "RCA Voyager III Tablet",
+ "ua": "Mozilla/5.0 (Linux; Android 6.0.1; RCT6973W43 Build/MMB29M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36",
+ "expect": {
+ "vendor": "RCA",
+ "model": "RCT6973W43",
+ "type": "tablet"
}
- }
-,
+ },
{
- "desc" : "RCA Voyager II Tablet",
- "ua" : "Mozilla/5.0 (Linux; Android 5.0; RCT6773W22B Build/LRX21M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36",
- "expect" :
- {
- "vendor" : "RCA",
- "model" : "RCT6773W22B",
- "type" : "tablet"
+ "desc": "RCA Voyager II Tablet",
+ "ua": "Mozilla/5.0 (Linux; Android 5.0; RCT6773W22B Build/LRX21M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36",
+ "expect": {
+ "vendor": "RCA",
+ "model": "RCT6773W22B",
+ "type": "tablet"
}
- }
-,
+ },
{
- "desc" : "Verizon Quanta Tablet",
- "ua" : "Mozilla/5.0 (Linux; Android 4.4.2; QMV7B Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36",
- "expect" :
- {
- "vendor" : "Verizon",
- "model" : "QMV7B",
- "type" : "tablet"
+ "desc": "Verizon Quanta Tablet",
+ "ua": "Mozilla/5.0 (Linux; Android 4.4.2; QMV7B Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36",
+ "expect": {
+ "vendor": "Verizon",
+ "model": "QMV7B",
+ "type": "tablet"
}
- }
-,
+ },
{
- "desc" : "Verizon Ellipsis 8 Tablet",
- "ua" : "Mozilla/5.0 (Linux; Android 5.1.1; QTAQZ3 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36",
- "expect" :
- {
- "vendor" : "Verizon",
- "model" : "QTAQZ3",
- "type" : "tablet"
+ "desc": "Verizon Ellipsis 8 Tablet",
+ "ua": "Mozilla/5.0 (Linux; Android 5.1.1; QTAQZ3 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36",
+ "expect": {
+ "vendor": "Verizon",
+ "model": "QTAQZ3",
+ "type": "tablet"
}
- }
-,
+ },
{
- "desc" : "Verizon Ellipsis 8HD Tablet",
- "ua" : "Mozilla/5.0 (Linux; Android 6.0.1; QTASUN1 Build/MMB29M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.81 Safari/537.36",
- "expect" :
- {
- "vendor" : "Verizon",
- "model" : "QTASUN1",
- "type" : "tablet"
+ "desc": "Verizon Ellipsis 8HD Tablet",
+ "ua": "Mozilla/5.0 (Linux; Android 6.0.1; QTASUN1 Build/MMB29M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.81 Safari/537.36",
+ "expect": {
+ "vendor": "Verizon",
+ "model": "QTASUN1",
+ "type": "tablet"
}
- }
-,
+ },
{
- "desc" : "Dell Venue 8 Tablet",
- "ua" : "Mozilla/5.0 (Linux; Android 4.4.2; Venue 8 3830 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36",
- "expect" :
- {
- "vendor" : "Dell",
- "model" : "Venue 8 3830",
- "type" : "tablet"
+ "desc": "Dell Venue 8 Tablet",
+ "ua": "Mozilla/5.0 (Linux; Android 4.4.2; Venue 8 3830 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36",
+ "expect": {
+ "vendor": "Dell",
+ "model": "Venue 8 3830",
+ "type": "tablet"
}
- }
-,
+ },
{
- "desc" : "Dell Venue 7 Tablet",
- "ua" : "Mozilla/5.0 (Linux; Android 4.4.2; Venue 7 3730 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36",
- "expect" :
- {
- "vendor" : "Dell",
- "model" : "Venue 7 3730",
- "type" : "tablet"
+ "desc": "Dell Venue 7 Tablet",
+ "ua": "Mozilla/5.0 (Linux; Android 4.4.2; Venue 7 3730 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36",
+ "expect": {
+ "vendor": "Dell",
+ "model": "Venue 7 3730",
+ "type": "tablet"
}
- }
-,
+ },
{
- "desc" : "Barnes & Noble Nook HD+ Tablet",
- "ua" : "Mozilla/5.0 (Linux; U; Android 4.1.2; en-us; Barnes & Noble Nook HD+ Build/JZO54K; CyanogenMod-10) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30",
- "expect" :
- {
- "vendor" : "Barnes & Noble",
- "model" : "Nook HD+",
- "type" : "tablet"
+ "desc": "Barnes & Noble Nook HD+ Tablet",
+ "ua": "Mozilla/5.0 (Linux; U; Android 4.1.2; en-us; Barnes & Noble Nook HD+ Build/JZO54K; CyanogenMod-10) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30",
+ "expect": {
+ "vendor": "Barnes & Noble",
+ "model": "Nook HD+",
+ "type": "tablet"
}
- }
-,
+ },
{
- "desc" : "Barnes & Noble V400 Tablet",
- "ua" : "Mozilla/5.0 (Linux; Android 4.0.4; BNTV400 Build/IMM76L) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.111 Safari/537.36",
- "expect" :
- {
- "vendor" : "Barnes & Noble",
- "model" : "V400",
- "type" : "tablet"
+ "desc": "Barnes & Noble V400 Tablet",
+ "ua": "Mozilla/5.0 (Linux; Android 4.0.4; BNTV400 Build/IMM76L) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.111 Safari/537.36",
+ "expect": {
+ "vendor": "Barnes & Noble",
+ "model": "V400",
+ "type": "tablet"
}
- }
-,
+ },
{
- "desc" : "NuVision TM101A540N Tablet",
- "ua" : "Mozilla/5.0 (Linux; Android 5.1; TM101A540N Build/LMY47I; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/50.0.2661.86 Safari/537.36",
- "expect" :
- {
- "vendor" : "NuVision",
- "model" : "TM101A540N",
- "type" : "tablet"
+ "desc": "NuVision TM101A540N Tablet",
+ "ua": "Mozilla/5.0 (Linux; Android 5.1; TM101A540N Build/LMY47I; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/50.0.2661.86 Safari/537.36",
+ "expect": {
+ "vendor": "NuVision",
+ "model": "TM101A540N",
+ "type": "tablet"
}
- }
-,
+ },
{
- "desc" : "ZTE K Series Tablet",
- "ua" : "Mozilla/5.0 (Linux; Android 6.0.1; K88 Build/MMB29M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36",
- "expect" :
- {
- "vendor" : "ZTE",
- "model" : "K88",
- "type" : "tablet"
+ "desc": "ZTE K Series Tablet",
+ "ua": "Mozilla/5.0 (Linux; Android 6.0.1; K88 Build/MMB29M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36",
+ "expect": {
+ "vendor": "ZTE",
+ "model": "K88",
+ "type": "tablet"
}
- }
-,
+ },
{
- "desc" : "Swizz GEN610",
- "ua" : "Mozilla/5.0 (Linux; Android 4.4.2; GEN610 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.83 Mobile Safari/537.36",
- "expect" :
- {
- "vendor" : "Swiss",
- "model" : "GEN610",
- "type" : "mobile"
+ "desc": "Swizz GEN610",
+ "ua": "Mozilla/5.0 (Linux; Android 4.4.2; GEN610 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.83 Mobile Safari/537.36",
+ "expect": {
+ "vendor": "Swiss",
+ "model": "GEN610",
+ "type": "mobile"
}
- }
-,
+ },
{
- "desc" : "Swizz ZUR700",
- "ua" : "Mozilla/5.0 (Linux; Android 4.4.2; ZUR700 Build/KVT49L) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Safari/537.36",
- "expect" :
- {
- "vendor" : "Swiss",
- "model" : "ZUR700",
- "type" : "tablet"
+ "desc": "Swizz ZUR700",
+ "ua": "Mozilla/5.0 (Linux; Android 4.4.2; ZUR700 Build/KVT49L) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Safari/537.36",
+ "expect": {
+ "vendor": "Swiss",
+ "model": "ZUR700",
+ "type": "tablet"
}
- }
-,
+ },
{
- "desc" : "Zeki TB782b Tablet",
- "ua" : "Mozilla/5.0 (Linux; U; Android 4.0.4; en-US; TB782B Build/IMM76D) AppleWebKit/534.31 (KHTML, like Gecko) UCBrowser/9.0.2.299 U3/0.8.0 Mobile Safari/534.31",
- "expect" :
- {
- "vendor" : "Zeki",
- "model" : "TB782B",
- "type" : "tablet"
+ "desc": "Zeki TB782b Tablet",
+ "ua": "Mozilla/5.0 (Linux; U; Android 4.0.4; en-US; TB782B Build/IMM76D) AppleWebKit/534.31 (KHTML, like Gecko) UCBrowser/9.0.2.299 U3/0.8.0 Mobile Safari/534.31",
+ "expect": {
+ "vendor": "Zeki",
+ "model": "TB782B",
+ "type": "tablet"
}
- }
-,
+ },
{
- "desc" : "Dragon Touch Tablet",
- "ua" : "Mozilla/5.0 (Linux; Android 4.0.4; DT9138B Build/IMM76D) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.72 Mobile Safari/537.36",
- "expect" :
+ "desc": "Dragon Touch Tablet",
+ "ua": "Mozilla/5.0 (Linux; Android 4.0.4; DT9138B Build/IMM76D) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.72 Mobile Safari/537.36",
+ "expect": {
+ "vendor": "Dragon Touch",
+ "model": "9138B",
+ "type": "tablet"
+ }
+ },
{
- "vendor" : "Dragon Touch",
- "model" : "9138B",
- "type" : "tablet"
- }
- }
-,
+ "desc": "Insignia Tablet",
+ "ua": "Mozilla/5.0 (Linux; U; Android 6.0.1; NS-P08A7100 Build/MMB29M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/56.0.2924.87 Safari/537.36",
+ "expect": {
+ "vendor": "Insignia",
+ "model": "NS-P08A7100",
+ "type": "tablet"
+ }
+ },
{
- "desc" : "Insignia Tablet",
- "ua" : "Mozilla/5.0 (Linux; U; Android 6.0.1; NS-P08A7100 Build/MMB29M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/56.0.2924.87 Safari/537.36",
- "expect" :
- {
- "vendor" : "Insignia",
- "model" : "NS-P08A7100",
- "type" : "tablet"
+ "desc": "Voice Xtreme V75",
+ "ua": "Mozilla/5.0 (Linux; U; Android 4.2.1; en-us; V75 Build/JOP40D) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30",
+ "expect": {
+ "vendor": "Voice",
+ "model": "V75",
+ "type": "mobile"
}
- }
-,
+ },
{
- "desc" : "Voice Xtreme V75",
- "ua" : "Mozilla/5.0 (Linux; U; Android 4.2.1; en-us; V75 Build/JOP40D) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30",
- "expect" :
- {
- "vendor" : "Voice",
- "model" : "V75",
- "type" : "mobile"
+ "desc": "LvTel V11",
+ "ua": "Mozilla/5.0 (Linux; Android 5.1.1; V11 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/39.0.0.0 Safari/537.36",
+ "expect": {
+ "vendor": "LvTel",
+ "model": "V11",
+ "type": "mobile"
}
- }
-,
+ },
{
- "desc" : "LvTel V11",
- "ua" : "Mozilla/5.0 (Linux; Android 5.1.1; V11 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/39.0.0.0 Safari/537.36",
- "expect" :
- {
- "vendor" : "LvTel",
- "model" : "V11",
- "type" : "mobile"
+ "desc": "Envizen Tablet V100MD",
+ "ua": "Mozilla/5.0 (Linux; U; Android 4.1.1; en-us; V100MD Build/V100MD.20130816) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Safari/534.30",
+ "expect": {
+ "vendor": "Envizen",
+ "model": "V100MD",
+ "type": "tablet"
}
- }
-,
+ },
{
- "desc" : "Envizen Tablet V100MD",
- "ua" : "Mozilla/5.0 (Linux; U; Android 4.1.1; en-us; V100MD Build/V100MD.20130816) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Safari/534.30",
- "expect" :
- {
- "vendor" : "Envizen",
- "model" : "V100MD",
- "type" : "tablet"
+ "desc": "Rotor Tablet",
+ "ua": "mozilla/5.0 (linux; android 5.0.1; tu_1491 build/lrx22c) applewebkit/537.36 (khtml, like gecko) chrome/43.0.2357.93 safari/537.36",
+ "expect": {
+ "vendor": "Rotor",
+ "model": "1491",
+ "type": "tablet"
}
- }
-,
+ },
{
- "desc" : "Rotor Tablet",
- "ua" : "mozilla/5.0 (linux; android 5.0.1; tu_1491 build/lrx22c) applewebkit/537.36 (khtml, like gecko) chrome/43.0.2357.93 safari/537.36",
- "expect" :
- {
- "vendor" : "Rotor",
- "model" : "1491",
- "type" : "tablet"
+ "desc": "MachSpeed Tablets",
+ "ua": "Mozilla/5.0 (Linux; Android 4.4.2; Trio 7.85 vQ Build/Trio_7.85_vQ) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Safari/537.36",
+ "expect": {
+ "vendor": "MachSpeed",
+ "model": "Trio 7.85 vQ",
+ "type": "tablet"
}
- }
-,
+ },
{
- "desc" : "MachSpeed Tablets",
- "ua" : "Mozilla/5.0 (Linux; Android 4.4.2; Trio 7.85 vQ Build/Trio_7.85_vQ) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Safari/537.36",
- "expect" :
- {
- "vendor" : "MachSpeed",
- "model" : "Trio 7.85 vQ",
- "type" : "tablet"
+ "desc": "Trinity Tablets",
+ "ua": "Mozilla/5.0 (Linux; Android 5.0.1; Trinity T101 Build/LRX22C) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.83 Safari/537.36",
+ "expect": {
+ "vendor": "Trinity",
+ "model": "T101",
+ "type": "tablet"
}
- }
-,
+ },
{
- "desc" : "Trinity Tablets",
- "ua" : "Mozilla/5.0 (Linux; Android 5.0.1; Trinity T101 Build/LRX22C) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.83 Safari/537.36",
- "expect" :
- {
- "vendor" : "Trinity",
- "model" : "T101",
- "type" : "tablet"
+ "desc": "NextBook Next7",
+ "ua": "Mozilla/5.0 (Linux; U; Android 4.0.4; en-us; Next7P12 Build/IMM76I) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Safari/534.30",
+ "expect": {
+ "vendor": "NextBook",
+ "model": "Next7P12",
+ "type": "tablet"
}
- }
-,
+ },
{
- "desc" : "NextBook Next7",
- "ua" : "Mozilla/5.0 (Linux; U; Android 4.0.4; en-us; Next7P12 Build/IMM76I) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Safari/534.30",
- "expect" :
- {
- "vendor" : "NextBook",
- "model" : "Next7P12",
- "type" : "tablet"
+ "desc": "NextBook Tablets",
+ "ua": "Mozilla/5.0 (Linux; Android 5.0; NXA8QC116 Build/LRX21V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36",
+ "expect": {
+ "vendor": "NextBook",
+ "model": "NXA8QC116",
+ "type": "tablet"
}
- }
-,
+ },
{
- "desc" : "NextBook Tablets",
- "ua" : "Mozilla/5.0 (Linux; Android 5.0; NXA8QC116 Build/LRX21V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36",
- "expect" :
- {
- "vendor" : "NextBook",
- "model" : "NXA8QC116",
- "type" : "tablet"
+ "desc": "Le Pan Tablets",
+ "ua": "Mozilla/5.0 (Linux; Android 4.2.2; Le Pan TC802A Build/JDQ39) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36",
+ "expect": {
+ "vendor": "Le Pan",
+ "model": "TC802A",
+ "type": "tablet"
}
- }
-,
+ },
{
- "desc" : "Le Pan Tablets",
- "ua" : "Mozilla/5.0 (Linux; Android 4.2.2; Le Pan TC802A Build/JDQ39) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36",
- "expect" :
- {
- "vendor" : "Le Pan",
- "model" : "TC802A",
- "type" : "tablet"
+ "desc": "Le Pan Tablets",
+ "ua": "Mozilla/5.0 (Linux; Android 4.2.2; Le Pan TC802A Build/JDQ39) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36",
+ "expect": {
+ "vendor": "Le Pan",
+ "model": "TC802A",
+ "type": "tablet"
}
- }
-,
+ },
{
- "desc" : "Le Pan Tablets",
- "ua" : "Mozilla/5.0 (Linux; Android 4.2.2; Le Pan TC802A Build/JDQ39) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36",
- "expect" :
- {
- "vendor" : "Le Pan",
- "model" : "TC802A",
- "type" : "tablet"
+ "desc": "Amazon Kindle Fire Tablet",
+ "ua": "Mozilla/5.0 (Linux; U; Android 4.4.3; en-us; KFSAWI Build/KTU84M) AppleWebKit/537.36 (KHTML, like Gecko) Silk/3.66 like Chrome/39.0.2171.93 Safari/537.36",
+ "expect": {
+ "vendor": "Amazon",
+ "model": "KFSAWI",
+ "type": "tablet"
}
- }
-,
+ },
{
- "desc" : "Amazon Kindle Fire Tablet",
- "ua" : "Mozilla/5.0 (Linux; U; Android 4.4.3; en-us; KFSAWI Build/KTU84M) AppleWebKit/537.36 (KHTML, like Gecko) Silk/3.66 like Chrome/39.0.2171.93 Safari/537.36",
- "expect" :
- {
- "vendor" : "Amazon",
- "model" : "KFSAWI",
- "type" : "tablet"
+ "desc": "Gigaset Tablet",
+ "ua": "Mozilla/5.0 (Linux; Android 4.2.2; Gigaset QV830 Build/JDQ39) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36",
+ "expect": {
+ "vendor": "Gigaset",
+ "model": "QV830",
+ "type": "tablet"
}
- }
-,
- {
- "desc" : "Gigaset Tablet",
- "ua" : "Mozilla/5.0 (Linux; Android 4.2.2; Gigaset QV830 Build/JDQ39) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36",
- "expect" :
- {
- "vendor" : "Gigaset",
- "model" : "QV830",
- "type" : "tablet"
+ },
+ {
+ "desc": "Redmi Note 3",
+ "ua": "Mozilla/5.0 (Linux; Android 6.0.1; Redmi Note 3 Build/MMB29M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.116 Mobile Safari/537.36",
+ "expect": {
+ "vendor": "Xiaomi",
+ "model": "Redmi Note 3",
+ "type": "mobile"
+ }
+ },
+ {
+ "desc": "MI PAD 2",
+ "ua": "Mozilla/5.0 (Linux; Android 5.1; MI PAD 2 Build/LMY47I; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/60.0.3112.107 Safari/537.36 [FB_IAB/FB4A;FBAV/137.0.0.24.91;]",
+ "expect": {
+ "vendor": "Xiaomi",
+ "model": "MI PAD 2",
+ "type": "tablet"
}
}
]
diff --git a/node_modules/ua-parser-js/test/test.js b/node_modules/ua-parser-js/test/test.js
index 2fd033ef6..99e53ffb1 100644
--- a/node_modules/ua-parser-js/test/test.js
+++ b/node_modules/ua-parser-js/test/test.js
@@ -65,6 +65,21 @@ for (var i in methods) {
});
}
+describe('Returns', function () {
+ it('getResult() should returns JSON', function(done) {
+ assert.deepEqual(new UAParser('').getResult(),
+ {
+ ua : '',
+ browser: { name: undefined, version: undefined, major: undefined },
+ cpu: { architecture: undefined },
+ device: { vendor: undefined, model: undefined, type: undefined },
+ engine: { name: undefined, version: undefined},
+ os: { name: undefined, version: undefined }
+ });
+ done();
+ });
+});
+
describe('Extending Regex', function () {
var uaString = 'Mozilla/5.0 MyOwnBrowser/1.3';
var myOwnBrowser = [[/(myownbrowser)\/((\d+)?[\w\.]+)/i], [UAParser.BROWSER.NAME, UAParser.BROWSER.VERSION, UAParser.BROWSER.MAJOR]];