Ignore empty lines when finding a fragment for partial updates.

Change hintsPrsentExact to verify number of entries match.
This commit is contained in:
dloverin committed 2013-06-14 11:03:56 -04:00
1 parent 5435d4092e
commit c784efb4c7
2 files changed
+15 -6

No files matched your search

@@ -241,6 +241,7 @@ define(function (require, exports, module) {
function hintsPresentExact(hintObj, expectedHints) {
_waitForHints(hintObj, function (hintList) {
expect(hintList).not.toBeNull();
expect(hintList.length).toBe(expectedHints.length);
expectedHints.forEach(function (expectedHint, index) {
expect(hintList[index].data("token").value).toBe(expectedHint);
});
@@ -1224,6 +1225,7 @@ define(function (require, exports, module) {
describe("JavaScript Code Hinting without modules", function () {
var testPath = extensionPath + "/unittest-files/non-module-test-files/app.js";
ScopeManager.handleProjectOpen(extensionPath + "/unittest-files/non-module-test-files/");
beforeEach(function () {
setupTest(testPath, true);
});