[TIMOB-28261] iOS: macOS sometimes lies about it's display/image scale/density
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | iOS |
| Labels | engSchedule |
| Reporter | Christopher Williams |
| Assignee | Unknown |
| Created | 2020-11-30T19:20:28.000+0000 |
| Updated | 2021-02-08T15:19:46.000+0000 |
Description
This shows up intermittently in our test suite:
ios.macos.Titanium.Blob.image dimensions should be reported in pixels (10.15.7)
*Error Message*
expected 6 to be 11
*Stacktrace*
fail@file:///Users/build/jenkins/workspace/tanium-sdk_titanium_mobile_9_3_X/tmp/mocha/build/iphone/build/Products/Debug-maccatalyst/mocha.app/Contents/Resources/node_modules/should/cjs/should.js:275:23
value@file:///Users/build/jenkins/workspace/tanium-sdk_titanium_mobile_9_3_X/tmp/mocha/build/iphone/build/Products/Debug-maccatalyst/mocha.app/Contents/Resources/node_modules/should/cjs/should.js:356:23
postlayout@file:///Users/build/jenkins/workspace/tanium-sdk_titanium_mobile_9_3_X/tmp/mocha/build/iphone/build/Products/Debug-maccatalyst/mocha.app/Contents/Resources/ti.blob.test.js:483:33
Some other tests confirm the issue (i.e. the systemredcolor test should always be 6x6 in 1x, 12x12 in 2x density, but we sometimes see it say it's 12x12@1x - so it's reporting a density of 1x but is actually 2x).
Investigation PR: https://github.com/appcelerator/titanium_mobile/pull/12445 Likely this relates to a known issue with macOS Catalyst apps on Catalina(54009624): https://developer.apple.com/documentation/macos-release-notes/macos-catalina-10_15-release-notes