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

Unified Diff: tools/telemetry/telemetry/core/chrome/timeline_event_unittest.py

Issue 12294002: Revert 182991 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 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/chrome/timeline_event_unittest.py
===================================================================
--- tools/telemetry/telemetry/core/chrome/timeline_event_unittest.py (revision 182999)
+++ tools/telemetry/telemetry/core/chrome/timeline_event_unittest.py (working copy)
@@ -1,27 +0,0 @@
-# Copyright (c) 2013 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import unittest
-
-from telemetry.core.chrome import timeline_event
-
-class TimelineEventTest(unittest.TestCase):
- def testChildrenLogic(self):
- # [ top ]
- # [ a ] [ b ]
- # [x]
- top = timeline_event.TimelineEvent('top', 0, 10)
- a = timeline_event.TimelineEvent('a', 1, 2)
- x = timeline_event.TimelineEvent('x', 1.5, 0.25)
- b = timeline_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_ms, 0.25)
- self.assertEquals(a.self_time_ms, 1.75) # 2 - 0.25
- self.assertEquals(top.self_time_ms, 6) # 10 - 2 -2
-
« no previous file with comments | « tools/telemetry/telemetry/core/chrome/timeline_event.py ('k') | tools/telemetry/telemetry/core/chrome/timeline_model.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698