fix the error show of ` FontTest`
Merge pull request #6250 from natural-law/develop

fix the error effect of ` FontTest` in lua-tests.