Lines Matching refs:tab
31 def test_back(self, tab):
34 @param tab: current tab.
40 self.verify_url(tab, self.URL_1)
42 def test_forward(self, tab):
45 @param tab: current tab.
51 self.verify_url(tab, self.URL_2)
53 def test_refresh(self, tab):
56 @param tab: current tab.
63 tab.EvaluateJavaScript("not_refreshed=true")
66 lambda: tab.EvaluateJavaScript(js),
74 self.verify_url(tab, self.URL_2)
78 not_refresh = tab.EvaluateJavaScript(js)
83 def verify_url(self, tab, correct_url):
84 """Verify tab's current url is the url wanted.
86 @param tab: current tab.
92 current_url = tab.url.encode('utf8').rstrip('/')
106 tab = cr.browser.tabs[0]
108 tab.Navigate(self.URL_1)
111 tab.Navigate(self.URL_2)
113 self.test_back(tab)
114 self.test_forward(tab)
115 self.test_refresh(tab)