browser/base/content/test/newtab/browser_newtab_reset.js

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

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

mercurial