mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
39 lines
958 B
JavaScript
39 lines
958 B
JavaScript
/* Any copyright is dedicated to the Public Domain.
|
|
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
"use strict";
|
|
|
|
let gTestTab;
|
|
let gContentAPI;
|
|
let gContentWindow;
|
|
|
|
Components.utils.import("resource:///modules/UITour.jsm");
|
|
|
|
function test() {
|
|
registerCleanupFunction(function() {
|
|
Services.prefs.clearUserPref("services.sync.username");
|
|
});
|
|
UITourTest();
|
|
}
|
|
|
|
let tests = [
|
|
function test_checkSyncSetup_disabled(done) {
|
|
function callback(result) {
|
|
is(result.setup, false, "Sync shouldn't be setup by default");
|
|
done();
|
|
}
|
|
|
|
gContentAPI.getConfiguration("sync", callback);
|
|
},
|
|
|
|
function test_checkSyncSetup_enabled(done) {
|
|
function callback(result) {
|
|
is(result.setup, true, "Sync should be setup");
|
|
done();
|
|
}
|
|
|
|
Services.prefs.setCharPref("services.sync.username", "uitour@tests.mozilla.org");
|
|
gContentAPI.getConfiguration("sync", callback);
|
|
},
|
|
];
|