[WIP] Bug 1003770 - [Unit test] Unit test for shrinking UI