add HTMLDocument live preview unit tests
fix jshint error
code review comments
Merge pull request #5211 from adobe/jasonsanjose/sync-error-tests

Add live preview HTMLDocument and STATUS_SYNC_ERROR integration tests