additional output for browser_relatedTabs.js

This commit is contained in:
Dão Gottwald 2010-06-14 16:57:28 +02:00
parent 7f591e1161
commit 6bf49b08f3
3 changed files with 14 additions and 11 deletions

View File

@ -36,6 +36,8 @@
* ***** END LICENSE BLOCK ***** */
function test() {
is(gBrowser.tabs.length, 1, "one tab is open initially");
// Add several new tabs in sequence, interrupted by selecting a
// different tab, moving a tab around and closing a tab,
// returning a list of opened tabs for verifying the expected order.
@ -76,9 +78,9 @@ function test() {
is(tabs[3], gBrowser.tabs[1], "next tab with referrer opened further to the right");
is(tabs[4], gBrowser.tabs[4], "tab selection changed, tab opens immediately to the right");
is(tabs[5], gBrowser.tabs[6], "blank tab with referrer opens to the right of 3rd original tab where removed tab was");
is(tabs[6], gBrowser.tabs[2], "tab has moved, new tab opens immediately to the right");
is(tabs[7], gBrowser.tabs[8], "blank tab without referrer opens at the end");
is(tabs[8], gBrowser.tabs[9], "tab without referrer opens at the end");
is(tabs[6], gBrowser.tabs[2], "tab has moved, new tab opens immediately to the right");
is(tabs[7], gBrowser.tabs[8], "blank tab without referrer opens at the end");
is(tabs[8], gBrowser.tabs[9], "tab without referrer opens at the end");
cleanUp(tabs);
}

View File

@ -75,16 +75,17 @@ treechildren::-moz-tree-row {
height: 1.3em;
}
treechildren::-moz-tree-row(multicol, odd) {
background-color: -moz-oddtreerow;
treechildren:not(.autocomplete-treebody)::-moz-tree-row(multicol, odd) {
background-color: -moz-oddtreerow;
}
treechildren::-moz-tree-row(selected) {
treechildren::-moz-tree-row(selected),
treechildren:not(.autocomplete-treebody)::-moz-tree-row(selected) {
background-color: -moz-cellhighlight;
}
treechildren::-moz-tree-row(selected, focus),
treechildren::-moz-tree-row(multicol, odd, selected, focus) {
treechildren:not(.autocomplete-treebody)::-moz-tree-row(selected, focus) {
background-color: Highlight;
}

View File

@ -65,19 +65,19 @@ treechildren::-moz-tree-row {
background-color: -moz-field;
}
treechildren::-moz-tree-row(multicol, odd) {
background-color: -moz-oddtreerow;
treechildren:not(.autocomplete-treebody)::-moz-tree-row(multicol, odd) {
background-color: -moz-oddtreerow;
}
treechildren::-moz-tree-row(selected),
treechildren::-moz-tree-row(odd, selected),
treechildren::-moz-tree-row(multicol, odd, selected) {
treechildren:not(.autocomplete-treebody)::-moz-tree-row(multicol, odd, selected) {
background-color: -moz-mac-secondaryhighlight;
}
treechildren::-moz-tree-row(selected, focus),
treechildren::-moz-tree-row(odd, selected, focus),
treechildren::-moz-tree-row(multicol, odd, selected, focus) {
treechildren:not(.autocomplete-treebody)::-moz-tree-row(multicol, odd, selected, focus) {
background-color: Highlight;
color: HighlightText;
}