showbuttons option ready

This commit is contained in:
vitalets
2012-11-30 16:33:54 +04:00
parent 3dc331cf5b
commit de7907575a
6 changed files with 51 additions and 19 deletions

@ -345,7 +345,20 @@
e.hover();
p = tip(e);
ok(p.is(':visible'), 'popover1 visible after second hover');
});
});
test("showbuttons: false", function () {
var e = $('<a href="#" id="a"></a>').appendTo('#qunit-fixture').editable({
showbuttons: false
});
e.click();
var p = tip(e);
ok(p.is(':visible'), 'popover visible');
ok(!p.find('.editable-submit').length, 'submit not rendered');
ok(!p.find('.editable-cancel').length, 'cancel not rendered');
ok(!p.find('.editable-buttons').length, '.editable-buttons block not rendered');
});
//unfortunatly, testing this feature does not always work in browsers. Tested manually.
/*