Commit b0626096 authored by Matthew Cary's avatar Matthew Cary Committed by Commit Bot

Custom Tabs: improve test failure message CustomTabActivityTest.

Change-Id: Idfb16f09178adcd7399601d035870b51bacef84c
Reviewed-on: https://chromium-review.googlesource.com/962143Reviewed-by: default avatarBenoit L <lizeb@chromium.org>
Commit-Queue: Matthew Cary <mattcary@chromium.org>
Cr-Commit-Position: refs/heads/master@{#543070}
parent fe1f0ab3
...@@ -2867,7 +2867,11 @@ public class CustomTabActivityTest { ...@@ -2867,7 +2867,11 @@ public class CustomTabActivityTest {
e.printStackTrace(); e.printStackTrace();
return false; return false;
} }
return TextUtils.equals(mExpected, value); boolean isSatisfied = TextUtils.equals(mExpected, value);
if (!isSatisfied) {
updateFailureReason("Page element is " + value + " instead of expected " + mExpected);
}
return isSatisfied;
} }
} }
......
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