mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-10 05:08:36 +02:00
10 lines
410 B
JavaScript
10 lines
410 B
JavaScript
var url = "https://example.com/browser/toolkit/content/tests/browser/file_contentTitle.html";
|
|
|
|
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);
|
|
});
|