blob: d64e4354023882d084af76e3355bfa12c02c8f53 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
Cu.import("resource://services-sync/util.js");
function run_test() {
let str;
// we just test whether the returned string includes the
// string "unknown", should be good enough
str = Utils.getErrorString("error.login.reason.account");
do_check_true(str.match(/unknown/i) == null);
str = Utils.getErrorString("foobar");
do_check_true(str.match(/unknown/i) != null);
}
|