def testBrowserStartupURLSetCorrectly(self):
    story_set = story_module.StorySet()
    google_page = page.Page('http://www.google.com', startup_url='http://www.google.com', page_set=story_set)
    example_page = page.Page('https://www.example.com', startup_url='https://www.example.com', page_set=story_set)
    gmail_page = page.Page('https://www.gmail.com', startup_url='https://www.gmail.com', page_set=story_set)
    for p in (google_page, example_page, gmail_page):
        story_set.AddStory(p)
    shared_state = shared_page_state.SharedPageState(DummyTest(), self.options, story_set)
    for p in (google_page, example_page, gmail_page):
        shared_state.WillRunStory(p)
        self.assertEquals(p.startup_url, self.options.browser_options.startup_url)
def testBrowserStartupURLSetCorrectly(self):
    story_set = story_module.StorySet()
    google_page = page.Page('http://www.google.com', startup_url='http://www.google.com', page_set=story_set)
    example_page = page.Page('https://www.example.com', startup_url='https://www.example.com', page_set=story_set)
    gmail_page = page.Page('https://www.gmail.com', startup_url='https://www.gmail.com', page_set=story_set)
    for p in (google_page, example_page, gmail_page):
        story_set.AddStory(p)
    shared_state = shared_page_state.SharedPageState(DummyTest(), self.options, story_set)
    for p in (google_page, example_page, gmail_page):
        shared_state.WillRunStory(p)
        self.assertEquals(p.startup_url, self.options.browser_options.startup_url)