summaryrefslogtreecommitdiffstats
path: root/toolkit/content/tests/browser/browser_contentTitle.js
blob: e8330eca0f6381b291a599a1dd9f071a27230625 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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);
});