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

Unified Diff: tools/telemetry/telemetry/core/timeline/event_unittest.py

Issue 19772005: [telemetry] Timeline model cleanups (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
Index: tools/telemetry/telemetry/core/timeline/event_unittest.py
diff --git a/tools/telemetry/telemetry/core/timeline/event_unittest.py b/tools/telemetry/telemetry/core/timeline/event_unittest.py
index 7c965f0bb6fca620e4f75de77c08b5d38380dddd..2c80c32146bb8c52ecb460142ac81c5bc5b7d340 100644
--- a/tools/telemetry/telemetry/core/timeline/event_unittest.py
+++ b/tools/telemetry/telemetry/core/timeline/event_unittest.py
@@ -4,24 +4,5 @@
import unittest
-from telemetry.core.timeline import event
-
class TimelineEventTest(unittest.TestCase):
- def testChildrenLogic(self):
- # [ top ]
- # [ a ] [ b ]
- # [x]
- top = event.TimelineEvent('top', 0, 10)
- a = event.TimelineEvent('a', 1, 2)
- x = event.TimelineEvent('x', 1.5, 0.25)
- b = event.TimelineEvent('b', 5, 2)
- top.children.extend([a, b])
- a.children.append(x)
-
- all_children = top.GetAllChildrenRecursive(include_self=True)
- self.assertEquals([top, a, x, b], all_children)
-
- self.assertEquals(x.self_time, 0.25)
- self.assertEquals(a.self_time, 1.75) # 2 - 0.25
- self.assertEquals(top.self_time, 6) # 10 - 2 -2
-
+ pass

Powered by Google App Engine
This is Rietveld 408576698