This commit is contained in:
vitalets
2012-11-09 12:58:42 +04:00
commit ccdff0ee51
160 changed files with 83260 additions and 0 deletions
.gitignoreCHANGELOG.txtLICENSE-GPLLICENSE-MITREADME.mdgrunt.js
libs
bootstrap204
bootstrap211
bootstrap221
jquery-ui-1.9.1.custom
jquery-ui-datepicker
jquery
mockjax
poshytip
qunit
makezippackage.json
src
test

32
test/mocks.js Normal file

@ -0,0 +1,32 @@
var timeout = 200;
$(function () {
$.mockjaxSettings.responseTime = 50;
$.mockjax({
url: 'post.php',
responseText: {
success: true
}
});
$.mockjax({
url: 'error.php',
status: 500,
statusText: 'Internal Server Error',
responseText: 'customtext'
});
$.mockjax({
url: 'post-resp.php',
response: function(settings) {
this.responseText = settings;
}
});
});
// usefull functions
function tip(e) {
return e.data('editableContainer').tip();
}