Commit 78c886cb authored by Austin Orion's avatar Austin Orion Committed by Commit Bot

Addendum: Make tests navigate to about:blank instead of NTP.

This is an addendum to this CL crrev.com/c/2019805

Change-Id: If77e8adf51935490167a150064515b2cd8cf96eb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2024692Reviewed-by: default avatarPatrik Höglund <phoglund@chromium.org>
Commit-Queue: Austin Orion <auorion@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#736594}
parent 2d9438cf
......@@ -305,7 +305,7 @@ content::WebContents*
WebRtcTestBase::OpenPageAndGetUserMediaInNewTabWithConstraints(
const GURL& url,
const std::string& constraints) const {
chrome::AddTabAt(browser(), GURL(), -1, true);
chrome::AddTabAt(browser(), GURL(url::kAboutBlankURL), -1, true);
ui_test_utils::NavigateToURL(browser(), url);
content::WebContents* new_tab =
browser()->tab_strip_model()->GetActiveWebContents();
......@@ -329,7 +329,7 @@ content::WebContents* WebRtcTestBase::OpenTestPageAndGetUserMediaInNewTab(
content::WebContents* WebRtcTestBase::OpenTestPageInNewTab(
const std::string& test_page) const {
chrome::AddTabAt(browser(), GURL(), -1, true);
chrome::AddTabAt(browser(), GURL(url::kAboutBlankURL), -1, true);
GURL url = embedded_test_server()->GetURL(test_page);
ui_test_utils::NavigateToURL(browser(), url);
content::WebContents* new_tab =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment