mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-09 13:25:00 +00:00
Convert test_corrupt_keys.js to add_test/run_next_test. r=philiKON
This commit is contained in:
parent
b3e3a6a424
commit
13ae1dc898
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user