1
0
mirror of https://github.com/adobe/brackets.git synced 2024-11-20 18:02:54 +01:00

More unit tests for the fileNames feature

This commit is contained in:
Dennis Kehrig 2013-03-13 13:22:41 +01:00
parent 2e6858f2ee
commit 21bbd9eea4

View File

@ -86,7 +86,8 @@ define(function (require, exports, module) {
describe("built-in languages", function () {
it("should support built-in languages", function () {
var html = LanguageManager.getLanguage("html");
var html = LanguageManager.getLanguage("html"),
coffee = LanguageManager.getLanguage("coffeescript");
// check basic language support
expect(html).not.toBeNull();
@ -104,6 +105,16 @@ define(function (require, exports, module) {
};
validateLanguage(def, html);
def = {
"id": "coffeescript",
"name": "CoffeeScript",
"mode": "coffeescript",
"fileExtensions": ["coffee", "cf", "cson"],
"fileNames": ["cakefile"]
};
validateLanguage(def, coffee);
});
});