зеркало из https://github.com/mozilla/pjs.git
Switch test_history_engine.js to add_test/run_next_test. r=philiKON
This commit is contained in:
Родитель
37711b31e8
Коммит
40b02fb346
|
@ -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();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче