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

Unified Diff: content/browser/frame_host/navigation_controller_impl_browsertest.cc

Issue 1449793002: data_with_base_url (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests Created 5 years, 1 month 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
Index: content/browser/frame_host/navigation_controller_impl_browsertest.cc
diff --git a/content/browser/frame_host/navigation_controller_impl_browsertest.cc b/content/browser/frame_host/navigation_controller_impl_browsertest.cc
index 1c93b3d35067b26423e2f6dc27f80e2027564909..0773d005b625fbfe753731337e636b1f2892a484 100644
--- a/content/browser/frame_host/navigation_controller_impl_browsertest.cc
+++ b/content/browser/frame_host/navigation_controller_impl_browsertest.cc
@@ -70,16 +70,10 @@ IN_PROC_BROWSER_TEST_F(NavigationControllerBrowserTest, LoadDataWithBaseURL) {
const GURL base_url("http://baseurl");
const GURL history_url("http://historyurl");
const std::string data = "<html><body>foo</body></html>";
-
- const NavigationController& controller =
- shell()->web_contents()->GetController();
- // Load data. Blocks until it is done.
content::LoadDataWithBaseURL(shell(), history_url, data, base_url);
-
- // We should use history_url instead of the base_url as the original url of
- // this navigation entry, because base_url is only used for resolving relative
- // paths in the data, or enforcing same origin policy.
- EXPECT_EQ(controller.GetVisibleEntry()->GetOriginalRequestURL(), history_url);
+ ReloadBlockUntilNavigationsComplete(shell(), 1);
+ EXPECT_TRUE(
+ ExecuteScript(shell()->web_contents(), "console.log('Success');"));
}
IN_PROC_BROWSER_TEST_F(NavigationControllerBrowserTest, UniqueIDs) {

Powered by Google App Engine
This is Rietveld 408576698