mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Slider: Some more test suite improvements
This commit is contained in:
parent
2df094527e
commit
134205840b
@ -13,14 +13,10 @@ var simulateKeyDownUp = function(el, kCode, shift) {
|
||||
module("spinner: core");
|
||||
|
||||
test("destroy", function() {
|
||||
// cheat a bit to get IE6 to pass
|
||||
$("#spin").val(0);
|
||||
var beforeHtml = $("#spin").parent().html();
|
||||
var afterHtml = $("#spin").spinner().spinner("destroy").parent().html();
|
||||
// Opera 9 outputs role="" instead of removing the attribute like everyone else
|
||||
/*
|
||||
if ($.browser.opera) {
|
||||
afterHtml = afterHtml.replace(/ role=""/g, "");
|
||||
}
|
||||
*/
|
||||
equal( afterHtml, beforeHtml, "before/after html should be the same" );
|
||||
});
|
||||
|
||||
|
@ -48,7 +48,7 @@ test("stop", function() {
|
||||
});
|
||||
|
||||
test("change", function() {
|
||||
var start = spin = stop = change = 0;
|
||||
var change = 0;
|
||||
|
||||
var el = $("#spin").spinner({
|
||||
change: function(){
|
||||
|
Loading…
Reference in New Issue
Block a user