Skip to content

Commit

Permalink
Slider: Some more test suite improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaefferer committed Oct 26, 2010
1 parent 2df0945 commit 1342058
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions tests/unit/spinner/spinner_core.js
Original file line number Diff line number Diff line change
Expand Up @@ -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" );
});

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/spinner/spinner_events.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(){
Expand Down

0 comments on commit 1342058

Please sign in to comment.