fune/toolkit/content/tests/browser/browser_contentTitle.js
Victor Porof 0773795931 Bug 1561435 - Format toolkit/content/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D36053

--HG--
extra : source : 651d8f947a29f5d80b7e833f7e6b99e2afe8bf9d
2019-07-05 11:14:49 +02:00

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