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

Unified Diff: components/dom_distiller/content/distiller_page_web_contents_browsertest.cc

Issue 225813008: Change regex back to wildcard match. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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: components/dom_distiller/content/distiller_page_web_contents_browsertest.cc
diff --git a/components/dom_distiller/content/distiller_page_web_contents_browsertest.cc b/components/dom_distiller/content/distiller_page_web_contents_browsertest.cc
index 697079864c715ee43bcd47dd2e4ad9e095b73848..2aa7f0ea62b7fde70bda9dfd964cd10a89fa3e0e 100644
--- a/components/dom_distiller/content/distiller_page_web_contents_browsertest.cc
+++ b/components/dom_distiller/content/distiller_page_web_contents_browsertest.cc
@@ -121,7 +121,7 @@ IN_PROC_BROWSER_TEST_F(DistillerPageWebContentsTest, HandlesRelativeLinks) {
result_list->GetString(1, &html);
// A relative link should've been updated.
EXPECT_THAT(html,
- ContainsRegex("href=\"http://127.0.0.1:[0-9]*/relativelink.html\""));
+ ContainsRegex("href=\"http://127.0.0.1:.*/relativelink.html\""));
EXPECT_THAT(html,
HasSubstr("href=\"http://www.google.com/absolutelink.html\""));
}
@@ -143,7 +143,7 @@ IN_PROC_BROWSER_TEST_F(DistillerPageWebContentsTest, HandlesRelativeImages) {
result_list->GetString(1, &html);
// A relative link should've been updated.
EXPECT_THAT(html,
- ContainsRegex("src=\"http://127.0.0.1:[0-9]*/relativeimage.png\""));
+ ContainsRegex("src=\"http://127.0.0.1:.*/relativeimage.png\""));
EXPECT_THAT(html,
HasSubstr("src=\"http://www.google.com/absoluteimage.png\""));
}
« 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