Don't hint on function, parameter, or variable declarations.
no hints for
var fo// we used to pop up hints here
This commit is contained in:
Erik Tierney committed 2013-05-10 16:00:16 -04:00
1 parent 03d0c0766f
commit dfdff356a6
4 files changed
+35 -1

No files matched your search

@@ -945,7 +945,7 @@ define(function (require, exports, module) {
expect(testDoc.getLine(end.line).length).toEqual(7);
});
});
it("should jump to function", function () {
var start = { line: 43, ch: 0 };
@@ -1017,6 +1017,21 @@ define(function (require, exports, module) {
editorJumped({line: 94, ch: 45});
});
});
it("should not hint function, variable, or param decls", function () {
var func = { line: 7, ch: 12 },
param = { line: 7, ch: 18 },
variable = { line: 10, ch: 10 };
runs(function () {
testEditor.setCursorPos(func);
expectNoHints(JSCodeHints.jsHintProvider);
testEditor.setCursorPos(param);
expectNoHints(JSCodeHints.jsHintProvider);
testEditor.setCursorPos(variable);
expectNoHints(JSCodeHints.jsHintProvider);
});
});
});
describe("JavaScript Code Hinting in a HTML file", function () {