function _waitForJump(jumpPromise, callback) {
            var cursor = null,
                complete = false;

            jumpPromise.done(function () {
                complete = true;
            });

            waitsFor(function () {
                var activeEditor = EditorManager.getActiveEditor();
                cursor = activeEditor.getCursorPos();
                return complete;
            }, "Expected jump did not occur", 3000);

            runs(function () { callback(cursor); });
        }
Wait for the editor to change positions, such as after a jump to
definition has been triggered.  Will timeout after 3 seconds

@param {{line:number, ch:number}} oldLocation - the original line/col
@param {Function} callback - the callback to apply once the editor has changed position