Hoist out a util for creating a mock Editor given an already-created
document, so JS code hints unit tests can share SpecRunnerUtils' mock-Editor
creation code instead of duplicating it.