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

32
test/mocks.js Normal file
View 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();
}