Add Nexus 5 to device list

User agent string taken from Chrome (Beta) Desktop's user-agent override in its
developer tools. Added to test plan.
This commit is contained in:
Douglas Li 2013-12-04 17:10:26 -08:00
parent 3901fbe532
commit 7c1397cdcc
3 changed files with 15 additions and 4 deletions

View File

@ -374,6 +374,7 @@
/android\s3\.[\s\w-;]{10}(lg?)-([06cv9]{3,4})/i // LG
], [[VENDOR, 'LG'], MODEL, [TYPE, TABLET]], [
/((nexus\s4))/i,
/((nexus\s5))/i,
/(lg)[e;\s-\/]+(\w+)*/i
], [[VENDOR, 'LG'], MODEL, [TYPE, MOBILE]], [

File diff suppressed because one or more lines are too long

View File

@ -19,6 +19,16 @@
"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" : "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",