diff --git a/tests/mozmill/tests/testPolicy/manifest.ini b/tests/mozmill/tests/testPolicy/manifest.ini index 8c38597a..05182ef8 100644 --- a/tests/mozmill/tests/testPolicy/manifest.ini +++ b/tests/mozmill/tests/testPolicy/manifest.ini @@ -2,4 +2,3 @@ [testRuleWithSchemeOnly.js] [include:testIframeTree/manifest.ini] -[include:testSchemeWorkaround/manifest.ini] diff --git a/tests/mozmill/tests/testPolicy/testSchemeWorkaround/manifest.ini b/tests/mozmill/tests/testPolicy/testSchemeWorkaround/manifest.ini deleted file mode 100644 index 5c9bfb9a..00000000 --- a/tests/mozmill/tests/testPolicy/testSchemeWorkaround/manifest.ini +++ /dev/null @@ -1,3 +0,0 @@ -[parent:../manifest.ini] - -[testUnknownScheme.js] diff --git a/tests/mozmill/tests/testPolicy/testSchemeWorkaround/testUnknownScheme.js b/tests/mozmill/tests/testPolicy/testSchemeWorkaround/testUnknownScheme.js deleted file mode 100644 index cc764fd4..00000000 --- a/tests/mozmill/tests/testPolicy/testSchemeWorkaround/testUnknownScheme.js +++ /dev/null @@ -1,47 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -"use strict"; - -/* global require, mozmill */ -/* exported setupModule, teardownModule, testUnknownScheme */ - -var rpRootDir = "../../../"; -var rpConst = require(rpRootDir + "lib/constants"); -var rootDir = rpRootDir + rpConst.mozmillTestsRootDir; - -var tabs = require(rootDir + "firefox/lib/tabs"); - -var rpUtils = require(rpRootDir + "lib/rp-utils"); - -var TEST_URL = "http://www.maindomain.test/scheme-unknown-and-without-host.html"; - - -var setupModule = function(aModule) { - /* global controller, tabBrowser */ - aModule.controller = mozmill.getBrowserController(); - aModule.tabBrowser = new tabs.tabBrowser(aModule.controller); - aModule.tabBrowser.closeAllTabs(); -} - -var teardownModule = function(aModule) { - aModule.tabBrowser.closeAllTabs(); -} - - -var testUnknownScheme = function() { - controller.open(TEST_URL); - controller.waitForPageLoad(); - - let link = rpUtils.getLink(controller); - link.click(); - - rpUtils.waitForTabLoad(controller, tabBrowser.getTab(0)); - - var getPanel = () => tabBrowser.getTabPanelElement(0, - '/{"value":"requestpolicy-scheme-notification"}'); - - assert.ok(getPanel().exists() === false, - "The scheme notification is NOT displayed."); -}