forked from mykmelez/gecko
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge autoland to mozilla-central. a=merge
- Loading branch information
Showing
57 changed files
with
1,083 additions
and
340 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
browser/base/content/test/tabs/browser_multiselect_tabs_copy_through_drag_and_drop.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
const PREF_MULTISELECT_TABS = "browser.tabs.multiselect"; | ||
function url(tab) { | ||
return tab.linkedBrowser.currentURI.spec; | ||
} | ||
|
||
add_task(async function setPref() { | ||
await SpecialPowers.pushPrefEnv({ | ||
set: [[PREF_MULTISELECT_TABS, true]] | ||
}); | ||
}); | ||
|
||
add_task(async function test() { | ||
let tab0 = gBrowser.selectedTab; | ||
let tab1 = await addTab("http://example.com/1"); | ||
let tab2 = await addTab("http://example.com/2"); | ||
let tab3 = await addTab("http://example.com/3"); | ||
let tabs = [tab0, tab1, tab2, tab3]; | ||
|
||
await BrowserTestUtils.switchTab(gBrowser, tab1); | ||
await triggerClickOn(tab2, { ctrlKey: true }); | ||
|
||
is(gBrowser.selectedTab, tab1, "Tab1 is active"); | ||
is(gBrowser.selectedTabs.length, 2, "Two selected tabs"); | ||
is(gBrowser.visibleTabs.length, 4, "Four tabs in window before copy"); | ||
|
||
for (let i of [1, 2]) { | ||
ok(tabs[i].multiselected, "Tab" + i + " is multiselected"); | ||
} | ||
for (let i of [0, 3]) { | ||
ok(!tabs[i].multiselected, "Tab" + i + " is not multiselected"); | ||
} | ||
|
||
await dragAndDrop(tab1, tab3, true); | ||
|
||
is(gBrowser.selectedTab, tab1, "tab1 is still active"); | ||
is(gBrowser.selectedTabs.length, 2, "Two selected tabs"); | ||
is(gBrowser.visibleTabs.length, 6, "Six tabs in window after copy"); | ||
|
||
let tab4 = gBrowser.visibleTabs[4]; | ||
let tab5 = gBrowser.visibleTabs[5]; | ||
tabs.push(tab4); | ||
tabs.push(tab5); | ||
|
||
for (let i of [1, 2]) { | ||
ok(tabs[i].multiselected, "Tab" + i + " is multiselected"); | ||
} | ||
for (let i of [0, 3, 4, 5]) { | ||
ok(!tabs[i].multiselected, "Tab" + i + " is not multiselected"); | ||
} | ||
|
||
await BrowserTestUtils.waitForCondition(() => url(tab4) == url(tab1)); | ||
await BrowserTestUtils.waitForCondition(() => url(tab5) == url(tab2)); | ||
|
||
ok(true, "Tab1 and tab2 are duplicated succesfully"); | ||
|
||
for (let tab of tabs.filter(t => t != tab0)) | ||
BrowserTestUtils.removeTab(tab); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 0 additions & 49 deletions
49
devtools/client/inspector/grids/test/browser_grids_no_fragments.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.