[Pkg-mozext-commits] [requestpolicy] 74/257: [tst][rem] Drop "Scheme Workaround" test

David Prévot taffit at moszumanska.debian.org
Thu Jan 28 03:19:58 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository requestpolicy.

commit dd9de25e3a336049510757d7d158d172fcb3a25f
Author: Martin Kimmerle <dev at 256k.de>
Date:   Fri Oct 9 19:10:26 2015 +0200

    [tst][rem] Drop "Scheme Workaround" test
    
    The scheme workaround is not needed anymore. See #447.
---
 tests/mozmill/tests/testPolicy/manifest.ini        |  1 -
 .../testPolicy/testSchemeWorkaround/manifest.ini   |  3 --
 .../testSchemeWorkaround/testUnknownScheme.js      | 47 ----------------------
 3 files changed, 51 deletions(-)

diff --git a/tests/mozmill/tests/testPolicy/manifest.ini b/tests/mozmill/tests/testPolicy/manifest.ini
index 8c38597..05182ef 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 5c9bfb9..0000000
--- 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 cc764fd..0000000
--- 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.");
-}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/requestpolicy.git



More information about the Pkg-mozext-commits mailing list