Cross Reference: config-test.js
xref
: /
yui3
/
src
/
yui
/
tests
/
config-test.js
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
config-test.js revision 88b2f46eee87d3178b1b8c9445cad829af054f6d
YUI
.
add
(
'config-test'
,
function
(Y) {
var
testCore
=
new
Y.
Test
.
Case
({
name
:
"Config tests"
,
test_config
:
function
() {
Y.
Assert
.
areEqual
(
YUI_config
.
gfilter
, Y.
config
.
filter
);
Y.
Assert
.
isObject
(Y.
config
.
logExclude
);
Y.
Assert
.
isTrue
(Y.
config
.
gconfig
);
YUI
().
use
(
'node'
,
function
(
Y2
) {
Y.
Assert
.
isUndefined
(
Y2
.
config
.
logExclude
);
Y.
Assert
.
isUndefined
(
Y2
.
config
.
filter
);
Y.
Assert
.
isTrue
(
Y2
.
config
.
gconfig
);
});
var
o1
= { a:
1
};
var
o2
= { b:
1
};
var
o3
= { c:
1
};
var
o4
= { d:
1
};
var
o5
= { e:
1
};
var
o6
= { f:
1
};
YUI
(
o1
,
o2
,
o3
,
o4
,
o5
,
o6
).
use
(
'node'
,
function
(
Y2
) {
Y.
Assert
.
areEqual
(
1
,
Y2
.
config
.f);
Y.
Assert
.
isTrue
(
Y2
.
config
.
gconfig
);
});
}
});
Y.
SeedTests
.
add
(
testCore
);
});