Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3027)

Unified Diff: blimp/engine/browser_tests/engine_browsertest.cc

Issue 2295543002: More Blimp browser tests for navigation (Closed)
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/engine/browser_tests/engine_browsertest.cc
diff --git a/blimp/engine/browser_tests/engine_browsertest.cc b/blimp/engine/browser_tests/engine_browsertest.cc
index ac9cec97707e9c9328a22084310b0930f0efe2ac..b2a39501b4a9473cbc7e0c15e421b989e2ab7ec1 100644
--- a/blimp/engine/browser_tests/engine_browsertest.cc
+++ b/blimp/engine/browser_tests/engine_browsertest.cc
@@ -115,7 +115,19 @@ IN_PROC_BROWSER_TEST_F(EngineBrowserTest, LoadUrl) {
EXPECT_EQ("page1", last_page_title_);
}
-IN_PROC_BROWSER_TEST_F(EngineBrowserTest, GoBack) {
+IN_PROC_BROWSER_TEST_F(EngineBrowserTest, Reload) {
+ ExpectPageLoad();
+ NavigateToLocalUrl("/page1.html");
+ RunAndVerify();
+ EXPECT_EQ("page1", last_page_title_);
Kevin M 2016/08/29 23:31:52 Turn these into named constants that are declared
Brian Goldman 2016/08/29 23:38:16 This might just be a standard Chromium test style
Kevin M 2016/08/29 23:41:30 It is a general styleguide rule in Chromium/Google
Brian Goldman 2016/08/30 00:43:07 Done.
+
+ ExpectPageLoad();
+ client_session_->GetNavigationFeature()->Reload(kDummyTabId);
+ RunAndVerify();
+ EXPECT_EQ("page1", last_page_title_);
+}
+
+IN_PROC_BROWSER_TEST_F(EngineBrowserTest, GoBackAndGoForward) {
ExpectPageLoad();
NavigateToLocalUrl("/page1.html");
RunAndVerify();
@@ -130,6 +142,11 @@ IN_PROC_BROWSER_TEST_F(EngineBrowserTest, GoBack) {
client_session_->GetNavigationFeature()->GoBack(kDummyTabId);
RunAndVerify();
EXPECT_EQ("page1", last_page_title_);
+
+ ExpectPageLoad();
+ client_session_->GetNavigationFeature()->GoForward(kDummyTabId);
+ RunAndVerify();
+ EXPECT_EQ("page2", last_page_title_);
}
Kevin M 2016/08/29 23:31:52 Would it make sense to also test going back with a
Brian Goldman 2016/08/29 23:38:16 I'm almost certain that right now in Blimp if the
Kevin M 2016/08/29 23:41:30 OK, could you investigate it for potentially addin
Brian Goldman 2016/08/30 00:43:07 Done.
} // namespace
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698