1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/browser/components/sessionstore/test/browser_682507.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,16 @@ 1.4 +/* Any copyright is dedicated to the Public Domain. 1.5 + http://creativecommons.org/publicdomain/zero/1.0/ */ 1.6 + 1.7 +function test() { 1.8 + Services.prefs.setBoolPref("browser.sessionstore.restore_on_demand", true); 1.9 + gBrowser.addTab("about:mozilla"); 1.10 + 1.11 + ss.setTabState(gBrowser.tabs[1], ss.getTabState(gBrowser.tabs[1])); 1.12 + ok(gBrowser.tabs[1].hasAttribute("pending"), "second tab should have 'pending' attribute"); 1.13 + 1.14 + gBrowser.selectedTab = gBrowser.tabs[1]; 1.15 + ok(!gBrowser.tabs[1].hasAttribute("pending"), "second tab should have not 'pending' attribute"); 1.16 + 1.17 + gBrowser.removeTab(gBrowser.tabs[1]); 1.18 + Services.prefs.clearUserPref("browser.sessionstore.restore_on_demand"); 1.19 +}