PageRenderTime 18ms CodeModel.GetById 10ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/services/sync/tests/unit/test_utils_atob.js

http://github.com/zpao/v8monkey
JavaScript | 8 lines | 7 code | 1 blank | 0 comment | 1 complexity | c35e429f047c4c44b1cc76465fef5d1b MD5 | raw file
1Cu.import("resource://services-sync/util.js");
2
3function run_test() {
4  let data = ["Zm9vYmE=", "Zm9vYmE==", "Zm9vYmE==="];
5  for (let d in data) {
6    do_check_eq(Utils.safeAtoB(data[d]), "fooba");
7  }
8}