function initCodeHintTest(openFile, openPos) {
            SpecRunnerUtils.loadProjectInTestWindow(testPath);

            runs(function () {
                var promise = SpecRunnerUtils.openProjectFiles([openFile]);
                waitsForDone(promise);
            });

            runs(function () {
                var editor = EditorManager.getCurrentFullEditor();
                if (Array.isArray(openPos)) {
                    editor.setSelections(openPos);
                } else {
                    editor.setCursorPos(openPos.line, openPos.ch);
                }
            });
        }
Performs setup for a code hint test. Opens a file and set pos.

@param {!string} openFile Project relative file path to open in a main editor.
@param {!number|Array} openPos The pos within openFile to place the IP, or an array
     representing a multiple selection to set.