loader-tests.js revision 81fff9485c02b942cf4937d7af7a223febbefd2f
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync Assert.areEqual(0, out.js.length, 'JS files returned');
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync Assert.areEqual(0, out.css.length, 'CSS files returned');
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync Assert.isTrue((out.js.length > 0), 'NO JS files returned');
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync Assert.isTrue((out.css.length > 0), 'NO CSS files returned');
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync Assert.isTrue((out.js.length > 0), 'NO JS files returned');
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync Assert.isTrue((out.css.length > 0), 'NO CSS files returned');
ignoreRegistered: true,
test_resolve_filter_debug: function() {
combine: true,
ignoreRegistered: true,
test_resolve_filter_min: function() {
combine: true,
ignoreRegistered: true,
test_resolve_filter_raw: function() {
combine: true,
ignoreRegistered: true,
test_resolve_combo_sep: function() {
combine: true,
ignoreRegistered: true,
test_resolve_combo_sep_group: function() {
combine: true,
ignoreRegistered: true,
groups: {
extra: {
combine: true,
modules: {
foo: {
bar: {
test_resolve_maxurl_length: function() {
combine: true,
ignoreRegistered: true,
test_resolve_maxurl_length_higher: function() {
combine: true,
ignoreRegistered: true,
test_resolve_maxurl_length_too_low: function() {
combine: true,
ignoreRegistered: true,
test_resolve_maxurl_length_group: function() {
combine: true,
ignoreRegistered: true,
groups: {
extra: {
combine: true,
modules: {
foo: {
bar: {
test_resolve_filters: function() {
combine: true,
ignoreRegistered: true,
test_group_filters: function() {
var test = this;
YUI({
debug: true,
groups: {
local: {
combine: false,
modules: {
foo: {
test_iter: function() {
var test = this;
YUI({
Y.LOADED = true;
YUI({
Y.LOADED = true;
test_progress: function() {
var test = this,
YUI({
onProgress: function(e) {
proContext = this;
counter++;
Y.LOADED = true;
test_condpattern: function() {
var test = this;
YUI({
groups: {
testpatterns: {
patterns: {
modtest: {
test_cond_with_test_function: function() {
var test = this;
YUI({
modules: {
cond2: {
condition: {
test: function() {
test_cond_no_test_or_ua: function() {
var test = this;
YUI({
modules: {
cond: {
condition: {
test_css_stamp: function() {
var test = this,
links = document.getElementsByTagName('link').length + document.getElementsByTagName('style').length;
var links2 = document.getElementsByTagName('link').length + document.getElementsByTagName('style').length;
test_forcemap: function() {
var test = this;
ignoreRegistered: true,
test_global_mods: function() {
var conf = {
combine: false,
Assert.areEqual(mods1.css.length, mods2.css.length, 'CSS Modules are not equal in 2 loader instances');
test_skin_default: function() {
Assert.areSame(loader.skin.defaultSkin, Y.Env.meta.skin.defaultSkin, 'Default skin was not set from default');
test_skin_string: function() {
test_skin_object: function() {
skin: {
test_outside_group: function() {
combine: true,
ignoreRegistered: true,
groups: {
mygallery: {
combine:true,
modules: {
outside: {
combine:false,
modules:{
test_outside_nocombine: function() {
combine: false,
ignoreRegistered: true,
groups: {
mygallery: {
combine:true,
modules: {