Skip to content
Permalink
Browse files

Slider: Some more test suite improvements

  • Loading branch information...
jzaefferer committed Oct 26, 2010
1 parent 2df0945 commit 134205840bb89b2a473cc003769d9a9a515157db
Showing with 3 additions and 7 deletions.
  1. +2 −6 tests/unit/spinner/spinner_core.js
  2. +1 −1 tests/unit/spinner/spinner_events.js
@@ -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(){

0 comments on commit 1342058

Please sign in to comment.
You can’t perform that action at this time.