1
0
Fork 0
firefox/toolkit/content/tests/browser/browser_contentTitle.js
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

17 lines
439 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);
});