This adds a few tests for `getState`, `restoreState` and `enforceWhitespace`, regarding the handling of space visibility. Each test handles equivalent cases for all three functions. X-original-commit: 2f28f42640a7322eec35a4d48a1ec7ce287b77b3 Part-of: odoo/odoo#138549