Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #4106 from DaBungalow/fix-language-test
Browse files Browse the repository at this point in the history
Fixed language manager unit test. Issue #3957
  • Loading branch information
redmunds committed Jun 6, 2013
2 parents b3c8d63 + 11bb449 commit 0057bc4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion test/spec/LanguageManager-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,18 @@ define(function (require, exports, module) {
expect(LanguageManager.getLanguage(expected.id)).toBe(actual);
}

var i = 0,
expectedFileExtensions = expected.fileExtensions || [],
expectedFileExtensionsLength = expectedFileExtensions.length,
actualFileExtensions = actual.getFileExtensions();

expect(actual.getId()).toBe(expected.id);
expect(actual.getName()).toBe(expected.name);
expect(actual.getFileExtensions()).toEqual(expected.fileExtensions || []);

for (i; i < expectedFileExtensionsLength; i++) {
expect(actualFileExtensions).toContain(expectedFileExtensions[i]);
}

expect(actual.getFileNames()).toEqual(expected.fileNames || []);

if (expected.blockComment) {
Expand Down

0 comments on commit 0057bc4

Please sign in to comment.