diff options
author | Matt A. Tobin <email@mattatobin.com> | 2018-02-03 06:00:38 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2018-02-03 06:00:38 -0500 |
commit | 8148615da179fdd60f19018e13b4e94b95609cc6 (patch) | |
tree | 771fccdd99fa3adf35fdd2c81d8197b415a89b91 /browser/components/feeds/test/chrome/test_423060.xul | |
parent | 494802c1be7888025b95260d23db187467d2b9dd (diff) | |
download | UXP-8148615da179fdd60f19018e13b4e94b95609cc6.tar UXP-8148615da179fdd60f19018e13b4e94b95609cc6.tar.gz UXP-8148615da179fdd60f19018e13b4e94b95609cc6.tar.lz UXP-8148615da179fdd60f19018e13b4e94b95609cc6.tar.xz UXP-8148615da179fdd60f19018e13b4e94b95609cc6.zip |
Remove browser tests - Part 1: The Tests (except for experiments)
Diffstat (limited to 'browser/components/feeds/test/chrome/test_423060.xul')
-rw-r--r-- | browser/components/feeds/test/chrome/test_423060.xul | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/browser/components/feeds/test/chrome/test_423060.xul b/browser/components/feeds/test/chrome/test_423060.xul deleted file mode 100644 index 465cf2dd2..000000000 --- a/browser/components/feeds/test/chrome/test_423060.xul +++ /dev/null @@ -1,56 +0,0 @@ -<?xml version="1.0"?> -<?xml-stylesheet href="chrome://global/skin" type="text/css"?> -<?xml-stylesheet - href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?> -<window title="Make sure feed preview works when a default reader is selected" - xmlns:html="http://www.w3.org/1999/xhtml" - xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> - <script type="application/javascript" - src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> - - <body xmlns="http://www.w3.org/1999/xhtml" /> - - <script type="application/javascript"> - SimpleTest.waitForExplicitFinish(); - - const Cc = Components.classes; - const Ci = Components.interfaces; - - var wccrID = "@mozilla.org/embeddor.implemented/web-content-handler-registrar;1"; - /* abort the test if web feed handlers are not available */ - if (!Cc[wccrID]) - SimpleTest.finish() - - /* Turn off the first run UI */ - var prefBranch = Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefBranch); - prefBranch.setBoolPref("browser.feeds.showFirstRunUI", false); - - /* register a handler for the feed type */ - const MAYBE_FEED = "application/vnd.mozilla.maybe.feed"; - var handlerPage = "http://mochi.test:8888/tests/toolkit/components/places/tests/chrome/demohandler.html?feedurl=%s"; - var wccr = Cc[wccrID].getService(Ci.nsIWebContentConverterService); - wccr.registerContentHandler(MAYBE_FEED, handlerPage, "Demo handler", null); - var demoHandler = wccr.getWebContentHandlerByURI(MAYBE_FEED, handlerPage); - wccr.setAutoHandler(MAYBE_FEED, demoHandler); - - /* Don't show the preview page */ - prefBranch.setCharPref("browser.feeds.handler", "reader"); - - function finishUp() { - var theframe = document.getElementById('theframe'); - var previewURL = "http://mochi.test:8888/tests/toolkit/components/places/tests/chrome/demohandler.html?feedurl=http%3A%2F%2Fmochi.test%3A8888%2Ftests%2Ftoolkit%2Fcomponents%2Fplaces%2Ftests%2Fchrome%2Fsample_feed.atom"; - is(theframe.contentDocument.URL, previewURL); - - /* remove our demoHandler */ - wccr.setAutoHandler(MAYBE_FEED, null); - wccr.removeContentHandler(MAYBE_FEED, handlerPage); - prefBranch.setCharPref("browser.feeds.handler", "ask"); - prefBranch.setBoolPref("browser.feeds.showFirstRunUI", true); - - SimpleTest.finish(); - } - </script> - <html:iframe src="http://mochi.test:8888/tests/toolkit/components/places/tests/chrome/sample_feed.atom" height="400px" - id="theframe" onload="finishUp();"> - </html:iframe> -</window> |