Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
var url =
add_task(async function () {
let tab = (gBrowser.selectedTab = BrowserTestUtils.addTab(gBrowser, url));
await BrowserTestUtils.waitForContentEvent(
tab.linkedBrowser,
"TestLocationChange",
true,
null,
true
);
is(gBrowser.contentTitle, "Test Page", "Should have the right title.");
gBrowser.removeTab(tab);
});