Exemplo n.º 1
0
    def __init__(self):
        super(SmallProfileCreator, self).__init__()
        self._page_set = page_sets.Typical25PageSet()

        # Open all links in the same tab save for the last _NUM_TABS links which
        # are each opened in a new tab.
        self._NUM_TABS = 5
    def __init__(self):
        super(_ExtensionPageTest, self).__init__()
        self._page_set = page_sets.Typical25PageSet()

        # Have the extensions been installed yet?
        self._extensions_installed = False

        # Expected
        self._expected_extension_count = 0
Exemplo n.º 3
0
    def __init__(self, finder_options):
        # Use exactly 5 tabs to generate the profile. This is because consumers of
        # this profile will perform a session restore, and expect 5 restored tabs.
        maximum_batch_size = 5
        super(SmallProfileExtender, self).__init__(finder_options,
                                                   maximum_batch_size)

        # Get the list of urls from the typical 25 page set.
        self._page_set = page_sets.Typical25PageSet()
        urls = []
        for story in self._page_set.stories:
            urls.append(story.url)
        self._navigation_urls = urls
Exemplo n.º 4
0
 def CreatePageSet(self, options):
     return page_sets.Typical25PageSet(run_no_page_interactions=True)
Exemplo n.º 5
0
 def CreateStorySet(self, options):
     return page_sets.Typical25PageSet()
Exemplo n.º 6
0
 def CreateStorySet(self, options):
     return page_sets.Typical25PageSet(run_no_page_interactions=True,
                                       cache_temperatures=[
                                           cache_temperature.PCV1_COLD,
                                           cache_temperature.PCV1_WARM
                                       ])
Exemplo n.º 7
0
 def CreatePageSet(self, options):
     return page_sets.Typical25PageSet(make_pages_with_no_interactions=True)