diff options
Diffstat (limited to 'browser/base/content/test/tabs/browser_addTab_index.js')
-rw-r--r-- | browser/base/content/test/tabs/browser_addTab_index.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/browser/base/content/test/tabs/browser_addTab_index.js b/browser/base/content/test/tabs/browser_addTab_index.js new file mode 100644 index 0000000000..abfc0c213e --- /dev/null +++ b/browser/base/content/test/tabs/browser_addTab_index.js @@ -0,0 +1,8 @@ +/* Any copyright is dedicated to the Public Domain. + * http://creativecommons.org/publicdomain/zero/1.0/ */ + +function test() { + let tab = gBrowser.addTrustedTab("about:blank", { index: 10 }); + is(tab._tPos, 1, "added tab index should be 1"); + gBrowser.removeTab(tab); +} |