mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
15 lines
388 B
JavaScript
15 lines
388 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.password");
|
|
do_check_true(str.match(/unknown/i) == null);
|
|
|
|
str = Utils.getErrorString("foobar");
|
|
do_check_true(str.match(/unknown/i) != null);
|
|
}
|