browser/components/tabview/test/browser_tabview_bug749658.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/components/tabview/test/browser_tabview_bug749658.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,26 @@
     1.4 +/* Any copyright is dedicated to the Public Domain.
     1.5 +   http://creativecommons.org/publicdomain/zero/1.0/ */
     1.6 +let win;
     1.7 +
     1.8 +function test() {
     1.9 +  waitForExplicitFinish();
    1.10 +
    1.11 +  newWindowWithTabView(function(newWin) {
    1.12 +    win = newWin;
    1.13 +
    1.14 +    registerCleanupFunction(function() {
    1.15 +      win.close();
    1.16 +    });
    1.17 +
    1.18 +    is(win.gBrowser.tabContainer.getAttribute("overflow"), "",
    1.19 +       "The tabstrip should not be overflowing");
    1.20 +
    1.21 +    finish();
    1.22 +  }, function(newWin) {
    1.23 +    /* add a tab with a ridiculously long title to trigger bug 749658 */
    1.24 +    var longTitle = "this is a very long title for the new tab ";
    1.25 +    longTitle = longTitle + longTitle + longTitle + longTitle + longTitle;
    1.26 +    longTitle = longTitle + longTitle + longTitle + longTitle + longTitle;
    1.27 +    newWin.gBrowser.addTab("data:text/html,<head><title>" + longTitle);
    1.28 +  });
    1.29 +}

mercurial