Skip to content

Commit

Permalink
feat(emulation): add iPhone X and iPhone X landscape (puppeteer#1631)
Browse files Browse the repository at this point in the history
This patch adds iPhone X and iPhone X landscape to emulation devices.
  • Loading branch information
x-cold authored and aslushnikov committed Dec 20, 2017
1 parent 8a40cd5 commit b2389b0
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions DeviceDescriptors.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,30 @@ module.exports = [
'isLandscape': true
}
},
{
'name': 'iPhone X',
'userAgent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1',
'viewport': {
'width': 375,
'height': 812,
'deviceScaleFactor': 3,
'isMobile': true,
'hasTouch': true,
'isLandscape': false
}
},
{
'name': 'iPhone X landscape',
'userAgent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1',
'viewport': {
'width': 812,
'height': 375,
'deviceScaleFactor': 3,
'isMobile': true,
'hasTouch': true,
'isLandscape': true
}
},
{
'name': 'Kindle Fire HDX',
'userAgent': 'Mozilla/5.0 (Linux; U; en-us; KFAPWI Build/JDQ39) AppleWebKit/535.19 (KHTML, like Gecko) Silk/3.13 Safari/535.19 Silk-Accelerated=true',
Expand Down

0 comments on commit b2389b0

Please sign in to comment.