fix tests for ie7

This commit is contained in:
vitalets 2013-01-10 23:37:24 +04:00
parent 825f610988
commit 124bdbd2f2
2 changed files with 15 additions and 0 deletions

@ -275,6 +275,13 @@
test("should not wrap buttons when parent has position:absolute (except ie7)", function () {
//skip this for: ie7 + bootstrap + popup
if($.browser.msie && parseInt($.browser.version, 10) <= 8 && $.fn.editable.defaults.mode === 'popup' && $.fn.editableContainer.Popup.prototype.containerName === 'popover') {
expect(0);
return;
}
var d = $('<div style="position: absolute; top: 200px">').appendTo(fx),
e = $('<a href="#" data-pk="1" data-url="post.php" data-name="text1">abc</a>').appendTo(d).editable({
showbuttons: true

@ -8,6 +8,14 @@ $(function () {
});
asyncTest("should load correct value and save new entered value", function () {
//skip test for ie7 as it is not supported by wysihtml5
if($.browser.msie && parseInt($.browser.version, 10) <= 8) {
expect(0);
start();
return;
}
var v1 = '<h1>qq</h1><br>qwerty',
v2 = '11<h2>werqwr</h2>4353',
e = $('<a href="#" data-pk="1" data-url="post.php">'+v1+'</a>').appendTo(fx).editable({