Skip to content

Commit a55ceed

Browse files
committed
Add Samsung Galaxy S3 and S4 and add HTC as a manufacturer
1 parent 6b585ce commit a55ceed

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

platform.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,8 @@
322322
'BlackBerry',
323323
{ 'label': 'Galaxy S', 'pattern': 'GT-I9000' },
324324
{ 'label': 'Galaxy S2', 'pattern': 'GT-I9100' },
325+
{ 'label': 'Galaxy S3', 'pattern': 'GT-I9300' },
326+
{ 'label': 'Galaxy S4', 'pattern': 'GT-I9500' },
325327
'Google TV',
326328
'iPad',
327329
'iPod',
@@ -345,10 +347,11 @@
345347
'BlackBerry': { 'PlayBook': 1 },
346348
'Google': { 'Google TV': 1 },
347349
'HP': { 'TouchPad': 1 },
350+
'HTC': { },
348351
'LG': { },
349352
'Motorola': { 'Xoom': 1 },
350353
'Nokia': { },
351-
'Samsung': { 'Galaxy S': 1, 'Galaxy S2': 1 },
354+
'Samsung': { 'Galaxy S': 1, 'Galaxy S2': 1, 'Galaxy S3': 1, 'Galaxy S4': 1 },
352355
'Sony': { 'PlayStation Vita': 1 }
353356
});
354357

test/test.js

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,13 @@
182182
'product': 'Transformer'
183183
},
184184

185-
'Android Browser 1.0 (like Chrome 18.0.1025.308) on Samsung (Android 4.2.2)': {
185+
'Android Browser 1.0 (like Chrome 18.0.1025.308) on Samsung Galaxy S4 (Android 4.2.2)': {
186186
'ua' : 'Mozilla/5.0 (Linux; Android 4.2.2; en-au; SAMSUNG GT-I9500 Build/JDQ39) AppleWebKit/535.19 (KHTML, like Gecko) Version/1.0 Chrome/18.0.1025.308 Mobie Safari/535.19',
187187
'layout': 'WebKit',
188188
'manufacturer': 'Samsung',
189189
'name': 'Android Browser',
190190
'os': 'Android 4.2.2',
191-
'product': 'Samsung',
191+
'product': 'Galaxy S4',
192192
'version': '1.0'
193193
},
194194

@@ -212,11 +212,13 @@
212212
'version': '3.0.4'
213213
},
214214

215-
'Android Browser 3.1.2 (like Safari 4.x) on Android 1.6': {
215+
'Android Browser 3.1.2 (like Safari 4.x) on HTC _TATTOO_A3288 (Android 1.6)': {
216216
'ua': 'Mozilla/5.0 (Linux; U; Android 1.6; en-us; HTC_TATTOO_A3288 Build/DRC79) AppleWebKit/528.5+ (KHTML, like Gecko) Version/3.1.2 Mobile Safari/525.20.1',
217217
'layout': 'WebKit',
218+
'manufacturer': 'HTC',
218219
'name': 'Android Browser',
219220
'os': 'Android 1.6',
221+
'product': 'HTC _TATTOO_A3288',
220222
'version': '3.1.2'
221223
},
222224

@@ -242,6 +244,17 @@
242244
'version': '4.0'
243245
},
244246

247+
'Android Browser 4.0 (like Chrome 12.x) on Samsung Galaxy S3 (Android 4.0.4)': {
248+
'ua': 'Mozilla/5.0 (Linux; U; Android 4.0.4; en-gb; GT-I9300 Build/IMM76D) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30',
249+
'layout': 'WebKit',
250+
'likeChrome': true,
251+
'manufacturer': 'Samsung',
252+
'name': 'Android Browser',
253+
'os': 'Android 4.0.4',
254+
'product': 'Galaxy S3',
255+
'version': '4.0'
256+
},
257+
245258
'Android Browser 4.1#{alpha} (like Chrome 5.x) on Android 2.2.1': {
246259
'ua': 'Mozilla/5.0 (Linux; U; Android 2.2.1; en-us; Nexus One Build/FRG83) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.1a Mobile Safari/533.1',
247260
'layout': 'WebKit',
@@ -413,11 +426,13 @@
413426
'version': '11.0.696.77'
414427
},
415428

416-
'Chrome Mobile 16.0.912.77 on Android 4.0.3': {
429+
'Chrome Mobile 16.0.912.77 on HTC (Android 4.0.3)': {
417430
'ua': 'Mozilla/5.0 (Linux; U; Android 4.0.3; zh-cn; HTC Sensation XE with Beats Audio Build/IML74K) AppleWebKit/535.7 (KHTML, like Gecko) CrMo/16.0.912.77 Mobile Safari/535.7',
418431
'layout': 'WebKit',
432+
'manufacturer': 'HTC',
419433
'name': 'Chrome Mobile',
420434
'os': 'Android 4.0.3',
435+
'product': 'HTC',
421436
'version': '16.0.912.77'
422437
},
423438

0 commit comments

Comments
 (0)