我有jQuery代码,当我点击一个链接它首先皮上,然后删除一些HTML,像这样:即确保 $(this).parent().parent().hide('slow', function() {
$(this).remove();
});
我想打一个QUnit测试的HTML在问题被删除: $(thelink).click();
// Check that it is gone, b
我正在做我的第一套javascript单元测试,我正在写一个插件。 它是基于一个jQuery UI控件,看起来像这样 $.widget("my.carousel", {
// Set up the widget
_create: function() {
var self = this;
_items = $(this.element).children(
我有以下成立QUnit: /* Dozen or so previous tests here */
test("Test some markup generation", function() {
$('#qunit-fixture').plugin(); // jQuery plugin: Generates a table
var rows = $('#qunit