Test case for jQuery Ticket 7802

callback fired although stop is used

by jitter

HTML

<button id="start"> Start </button><button id="stop"> Stop </button>
<div id="test"></div>

CSS

#test {
    border: 1px solid black;
    width: 20px;
    height: 20px;
}

JavaScript

var $d = $("#test");
$('#start').click(function() {
    $d.css("width", "").animate({ width: 200 }, 2000, function() {
        alert("Callback");
    });
});
$('#stop').click(function() {
    $d.stop();
});