Worksheets managed in GDoc Backend

This commit is contained in:
Krzysztof Trzewiczek
2012-08-07 12:09:05 +02:00
parent cf3fe1a656
commit f00a3a712e
2 changed files with 12 additions and 10 deletions

View File

@@ -191,9 +191,11 @@ test("GDocs Backend", function() {
test("GDocs Backend.getUrl", function() {
var key = 'Abc_dajkdkjdafkj';
var url = 'https://docs.google.com/spreadsheet/ccc?key=' + key + '#gid=0'
var gid = 0;
var worksheet = 1;
var url = 'https://docs.google.com/spreadsheet/ccc?key=' + key + '#gid=' + gid
var out = recline.Backend.GDocs.getSpreadsheetAPIUrl(url);
var exp = 'https://spreadsheets.google.com/feeds/list/' + key + '/1/public/values?alt=json'
var exp = 'https://spreadsheets.google.com/feeds/list/' + key + '/' + worksheet + '/public/values?alt=json'
equal(exp, out);
});