TextBuffer.js passes all unit tests.