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

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

Issue 1033493003: [Telemetry] Remove Page.TransferToPageSet method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/__init__.py ('k') | tools/telemetry/telemetry/page/page_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/page/page_set_unittest.py
diff --git a/tools/telemetry/telemetry/page/page_set_unittest.py b/tools/telemetry/telemetry/page/page_set_unittest.py
index 335d75b819a9f57463032c5fd9de2f2d66fe2e76..0e764a2e5327de0e3e052d61e3ea622d426476a3 100644
--- a/tools/telemetry/telemetry/page/page_set_unittest.py
+++ b/tools/telemetry/telemetry/page/page_set_unittest.py
@@ -43,24 +43,3 @@ class TestPageSet(unittest.TestCase):
real_absolute_dir]))
finally:
os.rmdir(directory_path)
-
- def testFormingPageSetFromSubPageSet(self):
- page_set_a = page_set.PageSet()
- pages = [
- page.Page('http://foo.com', page_set_a),
- page.Page('http://bar.com', page_set_a),
- ]
- for p in pages:
- page_set_a.AddUserStory(p)
-
- # Form page_set_b from sub page_set_a.
- page_set_b = page_set.PageSet()
- for p in pages:
- p.TransferToPageSet(page_set_b)
- page_set_b.AddUserStory(page.Page('http://baz.com', page_set_b))
- self.assertEqual(0, len(page_set_a.pages))
- self.assertEqual(
- set(['http://foo.com', 'http://bar.com', 'http://baz.com']),
- set(p.url for p in page_set_b.pages))
- for p in page_set_b.pages:
- self.assertIs(page_set_b, p.page_set)
« no previous file with comments | « tools/telemetry/telemetry/page/__init__.py ('k') | tools/telemetry/telemetry/page/page_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698