fix qunit-fixture empty to call destroyed
event and hide container
This commit is contained in:
parent
969c38b8d1
commit
0626d63db9
@ -27,6 +27,12 @@ require(["loader", jqurl], function(loader) {
|
|||||||
$.support.transition = false;
|
$.support.transition = false;
|
||||||
$.fn.editable.defaults.mode = params.c === 'inline' ? 'inline' : 'popup';
|
$.fn.editable.defaults.mode = params.c === 'inline' ? 'inline' : 'popup';
|
||||||
|
|
||||||
|
//for some reason qunit's empty of fixture does not call element's `destryed` event
|
||||||
|
//and container remains open
|
||||||
|
QUnit.testDone(function( details ) {
|
||||||
|
$('#qunit-fixture').empty();
|
||||||
|
});
|
||||||
|
|
||||||
QUnit.load();
|
QUnit.load();
|
||||||
QUnit.start();
|
QUnit.start();
|
||||||
});
|
});
|
||||||
@ -89,4 +95,4 @@ JSON.stringify = JSON.stringify || function (obj) {
|
|||||||
}
|
}
|
||||||
return (arr ? "[" : "{") + String(json) + (arr ? "]" : "}");
|
return (arr ? "[" : "{") + String(json) + (arr ? "]" : "}");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user