Switch test_history_engine.js to add_test/run_next_test. r=philiKON

This commit is contained in:
Richard Newman 2011-05-27 08:49:56 -07:00
Родитель 37711b31e8
Коммит 40b02fb346
1 изменённых файлов: 3 добавлений и 4 удалений

Просмотреть файл

@ -7,7 +7,7 @@ Cu.import("resource://services-sync/util.js");
var syncTesting = new SyncTestingInfrastructure();
function test_processIncoming_mobile_history_batched() {
add_test(function test_processIncoming_mobile_history_batched() {
_("SyncEngine._processIncoming works on history engine.");
let FAKE_DOWNLOAD_LIMIT = 100;
@ -49,7 +49,6 @@ function test_processIncoming_mobile_history_batched() {
let server = sync_httpd_setup({
"/1.1/foo/storage/history": collection.handler()
});
do_test_pending();
let engine = new HistoryEngine("history");
let meta_global = Records.set(engine.metaURL, new WBORecord(engine.metaURL));
@ -129,10 +128,10 @@ function test_processIncoming_mobile_history_batched() {
Svc.Prefs.resetBranch("");
Records.clearCache();
}
}
});
function run_test() {
generateNewKeys();
test_processIncoming_mobile_history_batched();
run_next_test();
}