From 8148615da179fdd60f19018e13b4e94b95609cc6 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Sat, 3 Feb 2018 06:00:38 -0500 Subject: Remove browser tests - Part 1: The Tests (except for experiments) --- .../base/content/test/general/browser_pageInfo.js | 38 ---------------------- 1 file changed, 38 deletions(-) delete mode 100644 browser/base/content/test/general/browser_pageInfo.js (limited to 'browser/base/content/test/general/browser_pageInfo.js') diff --git a/browser/base/content/test/general/browser_pageInfo.js b/browser/base/content/test/general/browser_pageInfo.js deleted file mode 100644 index 90fe2e17f..000000000 --- a/browser/base/content/test/general/browser_pageInfo.js +++ /dev/null @@ -1,38 +0,0 @@ -function test() { - waitForExplicitFinish(); - - var pageInfo; - - gBrowser.selectedTab = gBrowser.addTab(); - gBrowser.selectedBrowser.addEventListener("load", function loadListener() { - gBrowser.selectedBrowser.removeEventListener("load", loadListener, true); - - Services.obs.addObserver(observer, "page-info-dialog-loaded", false); - pageInfo = BrowserPageInfo(); - }, true); - content.location = - "https://example.com/browser/browser/base/content/test/general/feed_tab.html"; - - function observer(win, topic, data) { - Services.obs.removeObserver(observer, "page-info-dialog-loaded"); - pageInfo.onFinished.push(handlePageInfo); - } - - function handlePageInfo() { - ok(pageInfo.document.getElementById("feedTab"), "Feed tab"); - let feedListbox = pageInfo.document.getElementById("feedListbox"); - ok(feedListbox, "Feed list"); - - var feedRowsNum = feedListbox.getRowCount(); - is(feedRowsNum, 3, "Number of feeds listed"); - - for (var i = 0; i < feedRowsNum; i++) { - let feedItem = feedListbox.getItemAtIndex(i); - is(feedItem.getAttribute("name"), i + 1, "Feed name"); - } - - pageInfo.close(); - gBrowser.removeCurrentTab(); - finish(); - } -} -- cgit v1.2.3