Fix UIAutoGeneratedStyleNameTest. (#14670)

Change-Id: I5d6cb7df9989e5cf5b5e1e55a75b1a03fbab8050