slider-tests.js revision 998276643802ff9fb197fe220cbd9552da00a624
"test render( node )":
function () {
"<div></div>" +
// block element '<div class="floated" style="float:left"></div>' +
// float "<p></p>" +
// limited block element "<span></span>");
// inline element var div = Y.
one(
"#testbed > div"),
fl = Y.
one(
"#testbed > div.floated"),
p = Y.
one(
"#testbed > p"),
"test render: selector attrib in constructor":
function () {
"<div></div>" +
// block element '<div class="floated" style="float:left"></div>' +
// float "<p></p>" +
// limited block element "<span></span>");
// inline element var div = Y.
one(
"#testbed > div"),
fl = Y.
one(
"#testbed > div.floated"),
p = Y.
one(
"#testbed > p"),
"test render: node attrib in constructor":
function () {
"<div></div>" +
// block element '<div class="floated" style="float:left"></div>' +
// float "<p></p>" +
// limited block element "<span></span>");
// inline element var div = Y.
one(
"#testbed > div"),
fl = Y.
one(
"#testbed > div.floated"),
p = Y.
one(
"#testbed > p"),
"test render off DOM":
function () {
"test destroy() before render":
function () {
"test destroy() after render off DOM":
function () {
"test destroy() after render to DOM":
function () {
Y.
one(
'body').
append(
'<div id="testbed"></div>');
"test getValue() and setValue(v) before render":
function () {
// out of range constrained by setter "test getValue() and setValue(v) after render() to hidden container":
function () {
"test getValue() and setValue(v) after render() to DOM":
function () {
"setValue(v) then render() should position thumb":
function () {
"setValue(v) after render() should move the thumb":
function () {
"setValue(v) when hidden should still move the thumb":
function () {
// TODO This is a bug. invalid construction value should fallback // to specified attribute default "axis should only accept 'x', 'X', 'y', and 'Y'":
true Y.
one(
'body').
append(
'<span id="testbed"></span>');
"test axis":
function () {
Y.
assert( (
bb.
get(
"offsetWidth") >
100),
"offsetWidth > 100" );
Y.
assert( (
bb.
get(
"offsetHeight") <
50),
"offsetHeight < 50" );
Y.
assert( (
bb.
get(
"offsetHeight") >
100),
"offsetHeight > 100" );
Y.
assert( (
bb.
get(
"offsetWidth") <
50),
"offsetWidth < 50" );
"axis should be writeOnce":
function () {
"axis should only accept 'x', 'X', 'y', and 'Y'":
function () {
var attempts =
"a b c 1 2 3 yx yy YX YY vertical vert eks".
split(/ /);
"test length":
function () {
Y.
one(
'#testbed').
append(
'<div id="slider"></div><div id="ref"></div>');
"thumbUrl should default at render()":
function () {
"thumbUrl should default to sam skin":
function () {
"thumbUrl should default from the current skin":
function () {
"test clickableRail":
function () {
"test min":
function () {
"test max":
function () {
"test value":
function () {
name:
"Runtime expectations",
suite.add( new Y.Test.Case({ },
'@VERSION@' ,{
requires:[
'slider-base',
'test']});
YUI.
add(
'slider-value-range-tests',
function(Y) {
},
'@VERSION@' ,{
requires:[
'slider-value-range',
'test']});
YUI.
add(
'clickable-rail-tests',
function(Y) {
},
'@VERSION@' ,{
requires:[
'clickable-rail',
'test']});
YUI.
add(
'range-slider-tests',
function(Y) {
},
'@VERSION@' ,{
requires:[
'range-slider',
'test']});
YUI.
add(
'slider-tests',
function(Y){},
'@VERSION@' ,{
use:[
'slider-base-tests',
'slider-value-range-tests',
'clickable-rail-tests',
'range-slider-tests']});