mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
26 lines
799 B
JavaScript
26 lines
799 B
JavaScript
|
/* Any copyright is dedicated to the Public Domain.
|
||
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||
|
|
||
|
function test() {
|
||
|
let ss = Cc["@mozilla.org/browser/sessionstore;1"]
|
||
|
.getService(Ci.nsISessionStore);
|
||
|
|
||
|
let assertVisibilityDataEquals = function (val, msg) {
|
||
|
is(ss.getWindowValue(window, TabView.VISIBILITY_IDENTIFIER), val, msg);
|
||
|
}
|
||
|
|
||
|
waitForExplicitFinish();
|
||
|
|
||
|
ss.setWindowValue(window, window.TabView.VISIBILITY_IDENTIFIER, "null");
|
||
|
assertVisibilityDataEquals("null", "we start with <null>");
|
||
|
|
||
|
showTabView(function () {
|
||
|
assertVisibilityDataEquals("true", "after showing visibility data is <true>");
|
||
|
|
||
|
hideTabView(function () {
|
||
|
assertVisibilityDataEquals("false", "after hiding visibility data is <false>");
|
||
|
finish();
|
||
|
});
|
||
|
});
|
||
|
}
|