michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: http://creativecommons.org/publicdomain/zero/1.0/ */ michael@0: michael@0: /* michael@0: * These tests make sure that resetting the 'New Tage Page' works as expected. michael@0: */ michael@0: function runTests() { michael@0: // Disabled until bug 716543 is fixed. michael@0: return; michael@0: michael@0: // create a new tab page and check its modified state after blocking a site michael@0: yield setLinks("0,1,2,3,4,5,6,7,8"); michael@0: setPinnedLinks(""); michael@0: michael@0: yield addNewTabPageTab(); michael@0: let resetButton = getContentDocument().getElementById("toolbar-button-reset"); michael@0: michael@0: checkGrid("0,1,2,3,4,5,6,7,8"); michael@0: ok(!resetButton.hasAttribute("modified"), "page is not modified"); michael@0: michael@0: yield blockCell(4); michael@0: checkGrid("0,1,2,3,5,6,7,8,"); michael@0: ok(resetButton.hasAttribute("modified"), "page is modified"); michael@0: michael@0: yield getContentWindow().gToolbar.reset(TestRunner.next); michael@0: checkGrid("0,1,2,3,4,5,6,7,8"); michael@0: ok(!resetButton.hasAttribute("modified"), "page is not modified"); michael@0: }