зеркало из https://github.com/mozilla/pjs.git
Convert test_corrupt_keys.js to add_test/run_next_test. r=philiKON
This commit is contained in:
Родитель
ce7fac6da5
Коммит
54d8707fff
|
@ -9,7 +9,7 @@ Cu.import("resource://services-sync/engines/tabs.js");
|
|||
Cu.import("resource://services-sync/engines/history.js");
|
||||
Cu.import("resource://services-sync/log4moz.js");
|
||||
|
||||
function test_locally_changed_keys() {
|
||||
add_test(function test_locally_changed_keys() {
|
||||
let passphrase = "abcdeabcdeabcdeabcdeabcdea";
|
||||
|
||||
// Tracking info/collections.
|
||||
|
@ -33,7 +33,6 @@ function test_locally_changed_keys() {
|
|||
|
||||
Weave.Service.handleHMACEvent = counting(Weave.Service.handleHMACEvent);
|
||||
|
||||
do_test_pending();
|
||||
let server = httpd_setup({
|
||||
// Special.
|
||||
"/1.1/johndoe/storage/meta/global": upd("meta", meta_global.handler()),
|
||||
|
@ -232,13 +231,13 @@ function test_locally_changed_keys() {
|
|||
|
||||
} finally {
|
||||
Weave.Svc.Prefs.resetBranch("");
|
||||
server.stop(do_test_finished);
|
||||
server.stop(run_next_test);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
function run_test() {
|
||||
let logger = Log4Moz.repository.rootLogger;
|
||||
Log4Moz.repository.rootLogger.addAppender(new Log4Moz.DumpAppender());
|
||||
|
||||
test_locally_changed_keys();
|
||||
run_next_test();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче