|
|
@ -245,6 +245,17 @@ define([
|
|
|
|
hd.type === 'invite');
|
|
|
|
hd.type === 'invite');
|
|
|
|
}, "test support for invite urls");
|
|
|
|
}, "test support for invite urls");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assert(function (cb) {
|
|
|
|
|
|
|
|
var url = '/pad/?utm_campaign=new_comment&utm_medium=email&utm_source=thread_mailer#/1/edit/3Ujt4F2Sjnjbis6CoYWpoQ/usn4+9CqVja8Q7RZOGTfRgqI/';
|
|
|
|
|
|
|
|
var secret = Cryptpad.parsePadUrl(url);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return cb(secret.hashData.version === 1 &&
|
|
|
|
|
|
|
|
secret.hashData.mode === "edit" &&
|
|
|
|
|
|
|
|
secret.hashData.channel === "3Ujt4F2Sjnjbis6CoYWpoQ" &&
|
|
|
|
|
|
|
|
secret.hashData.key === "usn4+9CqVja8Q7RZOGTfRgqI" &&
|
|
|
|
|
|
|
|
!secret.hashData.present);
|
|
|
|
|
|
|
|
}, "test support for ugly tracking query paramaters in url");
|
|
|
|
|
|
|
|
|
|
|
|
assert(function (cb) {
|
|
|
|
assert(function (cb) {
|
|
|
|
// TODO
|
|
|
|
// TODO
|
|
|
|
return cb(true);
|
|
|
|
return cb(true);
|
|
|
|