Ejemplo n.º 1
0
 def test_browsers(self):
     for browser_name in utils.browser_names_to_test():
         log.info("**** Testing browser %s", browser_name)
         browser_info = BrowserInfo(name=browser_name)
         browser = browsers_manager.find_browser(
             BrowserInfo(name=browser_name))
         self._do_test_browser(browser)
Ejemplo n.º 2
0
    def _exercise_browsers(self, mockbrowser_class, callback):
        browser_names = utils.browser_names_to_test()

        browser_names.remove("dummy")
        browser_names.insert(0, "mockbrowser")

        old_browser_classes = browsers_manager.browser_classes[:]
        browsers_manager.browser_classes.insert(0, mockbrowser_class)

        for browser_name in browser_names:
            log.info("**** Testing browser %s", browser_name)
            callback(browser_name)

        browsers_manager.browser_classes = old_browser_classes