Add built-in global objects, and a TODO to also add built-in global properties and associations.

This commit is contained in:
Ian Wehrman committed 2013-02-15 14:03:27 -08:00
1 parent 9a8c8e8c3f
commit 9c371fc518
3 files changed
+41 -12

No files matched your search

@@ -185,11 +185,11 @@ define(function (require, exports, module) {
hintsPresentExact(hintObj, ["A2", "A3", "A1"]);
hintsAbsent(hintObj, ["funB"]);
});
it("should list keywords", function () {
testEditor.setCursorPos({ line: 6, ch: 0 });
var hintObj = expectHints(JSCodeHints.jsHintProvider);
hintsPresent(hintObj, ["function", "var", "switch"]);
hintsPresent(hintObj, ["break", "case", "catch"]);
});
it("should list explicitly defined globals from JSLint annotations", function () {