Tolerate whitespace or newlines
Use window.postMessage in test suite