mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 20:47:44 +00:00
15 lines
386 B
JavaScript
15 lines
386 B
JavaScript
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);
|
|
}
|