services/common/tests/unit/test_utils_atob.js

branch
TOR_BUG_9701
changeset 14
925c144e1f1f
equal deleted inserted replaced
-1:000000000000 0:e7929b822f27
1 /* Any copyright is dedicated to the Public Domain.
2 http://creativecommons.org/publicdomain/zero/1.0/ */
3
4 Cu.import("resource://services-common/utils.js");
5
6 function run_test() {
7 let data = ["Zm9vYmE=", "Zm9vYmE==", "Zm9vYmE==="];
8 for (let d in data) {
9 do_check_eq(CommonUtils.safeAtoB(data[d]), "fooba");
10 }
11 }

mercurial