Index: chrome/test/pyautolib/pyautolib.cc |
diff --git a/chrome/test/pyautolib/pyautolib.cc b/chrome/test/pyautolib/pyautolib.cc |
index e1007df62f22f82a6644436dad053e3def66c52e..6d355486fa44bb63ae0fd7e250ba2c0c8dabf8b2 100644 |
--- a/chrome/test/pyautolib/pyautolib.cc |
+++ b/chrome/test/pyautolib/pyautolib.cc |
@@ -80,6 +80,12 @@ void PyUITestBase::NavigateToURL( |
UITestBase::NavigateToURL(url, window_index, tab_index); |
} |
+void PyUITestBase::ReloadActiveTab(int window_index) { |
+ scoped_refptr<TabProxy> tab_proxy(GetActiveTab()); |
+ ASSERT_TRUE(tab_proxy.get()); |
+ ASSERT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS, tab_proxy->Reload()); |
+} |
+ |
bool PyUITestBase::AppendTab(const GURL& tab_url, int window_index) { |
scoped_refptr<BrowserProxy> browser_proxy = |
automation()->GetBrowserWindow(window_index); |