testsuite.js revision b40f5113b5f28daabc29b6ad49c905f290cf6cb7
name: "Lifecycle",
setUp: function () {
},
tearDown: function () {
},
"test default construction": function () {
},
"test SliderBase construction": function () {
},
"test render(selector)": function () {
"<div></div>" + // block element
'<div class="floated" style="float:left"></div>' + // float
"<p></p>" + // limited block element
"<span></span>"); // inline element
p = Y.one("#testbed > p"),
},
"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
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
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
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 () {
}
}));
name: "API",
setUp: function () {
},
tearDown: function () {
},
"test getValue() and setValue(v) before render": function () {
var s = this.slider;
s.setValue(50);
// TODO: this is a bug; should be 3
s.setValue(3.3333);
// out of range rejected by validator
s.setValue(-10);
s.setValue(110);
// TODO: this is a bug; should be 7
},
"test getValue() and setValue(v) after render() to hidden container": function () {
s = this.slider;
s.setValue(50);
// TODO: this is a bug; should be 3
s.setValue(3.3333);
s.setValue(-10);
s.setValue(110);
// TODO: this is a bug; should be 7
},
"test getValue() and setValue(v) after render() to DOM": function () {
var s = this.slider;
s.render('#testbed');
s.setValue(50);
s.setValue(3.3333);
s.setValue(-10);
s.setValue(110);
},
"setValue(v) then render() should position thumb": function () {
var s = this.slider;
s.setValue(20);
s.render("#testbed");
},
"setValue(v) after render() should move the thumb": function () {
var s = this.slider;
s.render('#testbed');
s.setValue(20);
s.setValue(0);
s.setValue(100);
},
"syncUI() should move the thumb after setValue(v) while hidden": function () {
var s = this.slider;
s.render('#testbed');
s.setValue(20);
s.syncUI();
}
}));
name: "Attributes",
_should: {
fail: {
// TODO This is a bug. invalid construction value should fallback
// to specified attribute default
"axis should only accept 'x', 'X', 'y', and 'Y'": true
}
},
setUp: function () {
},
tearDown: function () {
},
"test axis": function () {
},
"axis should be writeOnce": function () {
},
"axis should only accept 'x', 'X', 'y', and 'Y'": function () {
});
});
},
"test length": function () {
},
"test thumbUrl": function () {
},
"test clickableRail": function () {
},
"test min": function () {
},
"test max": function () {
},
"test value": function () {
}
}));
name: "Runtime expectations",
setUp: function () {
},
tearDown: function () {
},
"test ": function () {
}
}));
/*
suite.add( new Y.Test.Case({
name: "Bugs",
setUp: function () {
},
tearDown: function () {
},
"test ": function () {
}
}));
*/