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

Unified Diff: components/test_runner/web_view_test_client.cc

Issue 2385063002: test_runner: Do not dump validation messages for web-platform-tests. (Closed)
Patch Set: Created 4 years, 2 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 | third_party/WebKit/LayoutTests/imported/wpt/html/semantics/forms/constraints/form-validation-reportValidity-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/web_view_test_client.cc
diff --git a/components/test_runner/web_view_test_client.cc b/components/test_runner/web_view_test_client.cc
index 446acdaa509d9f4ebbdf0c76de7910b32c547cf5..ce689deccda6fb11b7429a9a1e166f67a96a28de 100644
--- a/components/test_runner/web_view_test_client.cc
+++ b/components/test_runner/web_view_test_client.cc
@@ -109,6 +109,9 @@ void WebViewTestClient::showValidationMessage(
blink::WebTextDirection main_message_hint,
const blink::WebString& sub_message,
blink::WebTextDirection sub_message_hint) {
+ if (test_runner_->is_web_platform_tests_mode())
+ return;
+
base::string16 wrapped_main_text = main_message;
base::string16 wrapped_sub_text = sub_message;
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/imported/wpt/html/semantics/forms/constraints/form-validation-reportValidity-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698