1
_("Make sure makeGUID makes guids of the right length/characters");
2
Cu.import("resource://weave/util.js");
5
// XXX this could cause random failures as guids arent always unique...
6
_("Create a bunch of guids to make sure they don't conflict");
8
for (let i = 0; i < 1000; i++) {
9
let newGuid = Utils.makeGUID();
10
_("Making sure guid has the right length without special characters:", newGuid);
11
do_check_eq(encodeURIComponent(newGuid).length, 10);
12
do_check_true(guids.every(function(g) g != newGuid));