Waiting in QUnit tests
问题 I have jQuery code that when I click on a link it first hides and then removes some HTML, like so: $(this).parent().parent().hide('slow', function () { $(this).remove(); }); I want to make a QUnit test that makes sure that the HTML in question was deleted: $(thelink).click(); // Check that it is gone, by finding the first item in the list entity = input.form.find('.recurrenceinput_occurrences .occurrence span.action a')[0]; // And make sure it's NOT the deleted one: ok(entity.attributes.date