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

Unified Diff: tools/telemetry/telemetry/page_runner_unittest.py

Issue 11745002: [telemetry] Fix user agent string for cros. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | tools/telemetry/telemetry/user_agent.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/page_runner_unittest.py
diff --git a/tools/telemetry/telemetry/page_runner_unittest.py b/tools/telemetry/telemetry/page_runner_unittest.py
index 8f4e1eadd50dbfa747ef30756ca02cc9c2b98f98..8dfba2e89846919f275f0e2214d3f6a85b3c4bee 100644
--- a/tools/telemetry/telemetry/page_runner_unittest.py
+++ b/tools/telemetry/telemetry/page_runner_unittest.py
@@ -119,7 +119,7 @@ class PageRunnerTests(unittest.TestCase):
class TestUserAgent(page_test.PageTest):
def RunTest(self, page, tab, results): # pylint: disable=W0613,R0201
actual_user_agent = tab.runtime.Evaluate('window.navigator.userAgent')
- expected_user_agent = '"%s"' % user_agent.UA_TYPE_MAPPING['tablet']
+ expected_user_agent = user_agent.UA_TYPE_MAPPING['tablet']
assert actual_user_agent.strip() == expected_user_agent
test = TestUserAgent('RunTest')
« no previous file with comments | « no previous file | tools/telemetry/telemetry/user_agent.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698