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

Unified Diff: telemetry/telemetry/wpr/archive_info_unittest.py

Issue 2162963002: [polymer] Merge of master into polymer10-migration (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Merge polymer10-migration int polymer10-merge Created 4 years, 5 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 | « telemetry/telemetry/wpr/archive_info.py ('k') | telemetry/third_party/webpagereplay/README.chromium » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: telemetry/telemetry/wpr/archive_info_unittest.py
diff --git a/telemetry/telemetry/wpr/archive_info_unittest.py b/telemetry/telemetry/wpr/archive_info_unittest.py
index b082aa9ea0365b6f7a6f344c28a37f083bb66bc0..5f9a5f2aaabeb732bbe72a656d9b485b88af4959 100644
--- a/telemetry/telemetry/wpr/archive_info_unittest.py
+++ b/telemetry/telemetry/wpr/archive_info_unittest.py
@@ -122,6 +122,11 @@ class WprArchiveInfoTest(unittest.TestCase):
archive_file_contents = json.load(f)
self.assertEquals(expected_archive_file_contents, archive_file_contents)
+ # Nit: Ensure the saved json does not contian trailing spaces.
+ with open(self.story_set_archive_info_file, 'rU') as f:
+ for line in f:
+ self.assertFalse(line.rstrip('\n').endswith(' '))
+
def testModifications(self):
recording1_path = os.path.join(self.tmp_dir, recording1)
recording2_path = os.path.join(self.tmp_dir, recording2)
« no previous file with comments | « telemetry/telemetry/wpr/archive_info.py ('k') | telemetry/third_party/webpagereplay/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698