[Pkg-mozext-commits] [requestpolicy] 53/80: Marionette "addon" library: new test

David Prévot taffit at moszumanska.debian.org
Sun Jul 5 15:02:30 UTC 2015


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

taffit pushed a commit to branch master
in repository requestpolicy.

commit 7b5c514ed5bda88448e10de7735b7177d1db5439
Author: Martin Kimmerle <dev at 256k.de>
Date:   Fri Jun 19 19:30:41 2015 +0200

    Marionette "addon" library: new test
    
    a test for `install_addon_in_two_steps`
---
 tests/marionette/rp_puppeteer/tests/test_addons.py | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/tests/marionette/rp_puppeteer/tests/test_addons.py b/tests/marionette/rp_puppeteer/tests/test_addons.py
index 61c75ff..5831ec4 100644
--- a/tests/marionette/rp_puppeteer/tests/test_addons.py
+++ b/tests/marionette/rp_puppeteer/tests/test_addons.py
@@ -59,6 +59,20 @@ class TestAddons(AddonsTestCase):
         self.assertEqual(self.count_tabs(), num_tabs,
                          msg="The number of tabs is like in the beginning.")
 
+    def test_install_in_two_steps(self):
+        self.assertTrue(self.addons.is_addon_installed(ADDON_ID))
+        self.addons.remove_addon_by_id(ADDON_ID)
+        self.assertFalse(self.addons.is_addon_installed(ADDON_ID))
+
+        tab = None
+        with self.addons.install_addon_in_two_steps(INSTALL_URL):
+            # when a tab is opened and selected, there shouldn't be an exception
+            tab = self.browser.tabbar.open_tab()
+            tab.select()
+        tab.close()
+
+        self.assertTrue(self.addons.is_addon_installed(ADDON_ID))
+
     def test_uninstall_install(self):
         def is_installed():
             with self.addons.using_addon_list() as about_addons:

-- 
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