gecko/services/sync/tests/unit/test_utils_getErrorString.js
Philipp von Weitershausen f31ef51815 Bug 596620 - Remove compat code for username-based UI. r=rnewman
Also call Weave.Service.createAccount() with right parameters.
2011-03-25 00:57:23 -07:00

15 lines
387 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);
}