From 9dc206c1ee4e3932f79474484b3ee333cec32dbf Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 29 Aug 2016 16:54:03 +0200 Subject: [PATCH] update tests to use correct variables --- customize.dist/share/test.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/customize.dist/share/test.js b/customize.dist/share/test.js index 712ac66e5..efc70bc37 100644 --- a/customize.dist/share/test.js +++ b/customize.dist/share/test.js @@ -5,10 +5,12 @@ define([ var $ = window.jQuery; var domain = 'https://beta.cryptpad.fr'; + domain = 'http://localhost:3000'; var path = '/customize/share/frame.html'; var acceptResponseFrom = [ + /.*/i, /cryptpad.fr$/ ]; @@ -77,14 +79,14 @@ define([ var keys = Object.keys(map); - frame.batchset(map, function (err, data) { + frame.setBatch(map, function (err, data) { if (handleErr(err)) { return; } - frame.batchget(keys, function (err, data) { + frame.getBatch(keys, function (err, data) { if (handleErr(err)) { return; } - frame.batchremove(Object.keys(map), function (err) { + frame.removeBatch(Object.keys(map), function (err) { if (handleErr(err)) { return; } - frame.batchget(keys, function (err, data) { + frame.getBatch(keys, function (err, data) { if (areNull(keys, data)) { unlock(i); } }); }); @@ -100,15 +102,15 @@ define([ var keys = Object.keys(map); // set some keys to arbitrary values - frame.batchset(map, function (err) { + frame.setBatch(map, function (err) { if (handleErr(err)) { return; } // remove those values - frame.batchremove(keys, function (err) { + frame.removeBatch(keys, function (err) { if (handleErr(err)) { return; } // check that they were actually removed - frame.batchget(keys, function (err, data) { + frame.getBatch(keys, function (err, data) { if (handleErr(err)) { return; } // all keys should be null after you've removed them