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

Unified Diff: tools/telemetry/telemetry/page/page_unittest.py

Issue 384483002: Add IDs to Telemetry Pages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Get rid of unused classmethod Created 6 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 | « tools/telemetry/telemetry/page/page.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/page/page_unittest.py
diff --git a/tools/telemetry/telemetry/page/page_unittest.py b/tools/telemetry/telemetry/page/page_unittest.py
index fcb9ddcce8c06a79227ee84ec962bf8d74327a9f..a422a7ad43e0374e47d15172cd06426e73c12297 100644
--- a/tools/telemetry/telemetry/page/page_unittest.py
+++ b/tools/telemetry/telemetry/page/page_unittest.py
@@ -115,3 +115,8 @@ class TestPage(unittest.TestCase):
ps.AddPageWithDefaultRunNavigate('file://../../otherdir/foo')
self.assertEquals(ps[0].display_name, 'foo')
+
+ def testPagesHaveDifferentIds(self):
+ p = page.Page("http://example.com")
+ p2 = page.Page("http://example.com")
+ self.assertNotEqual(p.id, p2.id)
« no previous file with comments | « tools/telemetry/telemetry/page/page.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698