mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1167502 - Convert CloudSync test r=billm
This commit is contained in:
parent
37dc785d3b
commit
d2531032b3
@ -7,7 +7,7 @@ function test() {
|
||||
let local = {};
|
||||
|
||||
Components.utils.import("resource://gre/modules/CloudSync.jsm", local);
|
||||
Components.utils.import("resource:///modules/sessionstore/TabState.jsm", local);
|
||||
Components.utils.import("resource:///modules/sessionstore/TabStateFlusher.jsm", local);
|
||||
|
||||
let cloudSync = local.CloudSync();
|
||||
let opentabs = [];
|
||||
@ -58,11 +58,11 @@ function test() {
|
||||
|
||||
function flush() {
|
||||
tab.linkedBrowser.removeEventListener("load", flush, true);
|
||||
local.TabState.flush(tab.linkedBrowser);
|
||||
++ nflushed;
|
||||
info("flushed " + nflushed);
|
||||
|
||||
next();
|
||||
local.TabStateFlusher.flush(tab.linkedBrowser).then(() => {
|
||||
++ nflushed;
|
||||
info("flushed " + nflushed);
|
||||
next();
|
||||
});
|
||||
}
|
||||
|
||||
tab.linkedBrowser.addEventListener("load", flush, true);
|
||||
|
Loading…
Reference in New Issue
Block a user