[backend/gdocs][s]: minor improvement to support handling spreadsheet urls where #gid=xxx is missing.

This commit is contained in:
Rufus Pollock
2012-10-20 01:40:37 +01:00
parent d5b648cc89
commit 97dcf08780
2 changed files with 9 additions and 2 deletions

View File

@@ -310,6 +310,10 @@ test("GDocs Backend.getUrl", function() {
var exp2 = 'https://spreadsheets.google.com/feeds/worksheets/' + key + '/public/basic?alt=json'
equal(exp1, out.worksheet);
equal(exp2, out.spreadsheet);
var url = 'https://docs.google.com/spreadsheet/ccc?key=' + key;
var out = recline.Backend.GDocs.getGDocsAPIUrls(url);
equal(out.worksheet, exp1);
});
})(this.jQuery);