The fix is to cutoff the leading slash on a module name.
Test is not working due to issues with the ProjectManager and the missing projectRoot
This commit is contained in:
Ingo Richter committed 2014-02-27 18:21:32 -08:00
1 parent b408b51706
commit b856768671
4 files changed
+62 -4

No files matched your search

@@ -1806,6 +1806,32 @@ define(function (require, exports, module) {
});
describe("Code Hinting Regression", function () {
var testFile = extensionPath + "/unittest-files/module-test-files/china/cupFiller.js";
beforeEach(function () {
setupTest(testFile, true);
});
afterEach(function () {
tearDownTest();
});
// The test is disabled, because the TernWorker will consult the ProjectManager to
// determine all the files in the project root. We don't have a project root for this
// testcase. Perhaps we need to change the testsetup or find another way of dealing with this
// Test makes sure that http://github.com/adobe/brackets/issue/6931 doesn't show up
xit("should show hints for members of referenced class", function () {
var start = { line: 8, ch: 15 };
runs(function () {
testEditor.setCursorPos(start);
var hintObj = expectHints(JSCodeHints.jsHintProvider);
hintsPresentExact(hintObj, ["empty", "emptyIt", "fill", "full"]);
});
});
});
describe("JavaScript Code Hinting format parameters tests", function () {
it("should format parameters with no params", function () {
@@ -1859,7 +1885,5 @@ define(function (require, exports, module) {
});
});
});
});