Add backend tests for new API functions

These new functions are:
* getSavedRevisionsCount
* listSavedRevisions
* saveRevision

+ typo fixing in backend tests
This commit is contained in:
Luc Didry 2015-02-25 01:05:58 +01:00
parent 845788c39d
commit 92022e493e
2 changed files with 117 additions and 29 deletions

View file

@ -63,6 +63,9 @@ Pad.prototype.getSavedRevisionsList = function getSavedRevisionsList() {
for(var rev in this.savedRevisions){
savedRev.push(this.savedRevisions[rev].revNum);
}
savedRev.sort(function(a, b) {
return a - b;
});
return savedRev;
};