michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: http://creativecommons.org/publicdomain/zero/1.0/ */ michael@0: michael@0: function test() { michael@0: Services.prefs.setBoolPref("browser.sessionstore.restore_on_demand", true); michael@0: gBrowser.addTab("about:mozilla"); michael@0: michael@0: ss.setTabState(gBrowser.tabs[1], ss.getTabState(gBrowser.tabs[1])); michael@0: ok(gBrowser.tabs[1].hasAttribute("pending"), "second tab should have 'pending' attribute"); michael@0: michael@0: gBrowser.selectedTab = gBrowser.tabs[1]; michael@0: ok(!gBrowser.tabs[1].hasAttribute("pending"), "second tab should have not 'pending' attribute"); michael@0: michael@0: gBrowser.removeTab(gBrowser.tabs[1]); michael@0: Services.prefs.clearUserPref("browser.sessionstore.restore_on_demand"); michael@0: }