Skip to content

Commit

Permalink
Tests to make sure it all worked
Browse files Browse the repository at this point in the history
  • Loading branch information
davglass committed Mar 23, 2011
1 parent 7573055 commit 467f5a5
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions tests/interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,37 @@ suite.add( new YUITest.TestCase({
Assert.isObject(Y.Loader);
next();
});
}),
"yui3 no gallery" : async(function (data, next) {
yui3.configure({ debug: false, gallery: false }).use("loader", function (Y) {
Assert.isUndefined(Y.config.groups.gallery);
Assert.isObject(Y.Loader);
next();
});
}),
"yui3 no 2in3" : async(function (data, next) {
yui3.configure({ debug: false, '2in3': false }).use("loader", function (Y) {
Assert.isUndefined(Y.config.groups.yui2);
Assert.isObject(Y.Loader);
next();
});
}),
"yui3 no 2in3 and no gallery" : async(function (data, next) {
yui3.configure({ debug: false, '2in3': false, gallery: false }).use("loader", function (Y) {
Assert.isUndefined(Y.config.groups.gallery);
Assert.isUndefined(Y.config.groups.yui2);
Assert.isObject(Y.Loader);
next();
});
}),
"yui3 no 2in3 and no gallery" : async(function (data, next) {
var core = require('yui3-core@3.3.0');
yui3.configure({ debug: false, '2in3': false, gallery: false, yuiPath: core.path(), yuiCoreFile: 'build/yui/yui-debug.js' }).use("loader", function (Y) {
Assert.isUndefined(Y.config.groups.gallery);
Assert.isUndefined(Y.config.groups.yui2);
Assert.isObject(Y.Loader);
next();
});
})
}));

Expand Down

0 comments on commit 467f5a5

Please sign in to comment.