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

Unified Diff: tools/telemetry/telemetry/timeline_model_unittest.py

Issue 11818024: InspectorTimeline improvements (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years, 11 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/timeline_model.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/timeline_model_unittest.py
diff --git a/tools/telemetry/telemetry/timeline_model_unittest.py b/tools/telemetry/telemetry/timeline_model_unittest.py
new file mode 100644
index 0000000000000000000000000000000000000000..1adf9d9a5173844bc86e6ee53f440f7c20a2f13a
--- /dev/null
+++ b/tools/telemetry/telemetry/timeline_model_unittest.py
@@ -0,0 +1,18 @@
+# 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.timeline_event import TimelineEvent
+from telemetry.timeline_model import TimelineModel
+
+class TimelineModelUnittest(unittest.TestCase):
+ def testTimelineEventsOfType(self):
+ timeline_model = TimelineModel()
+ a = TimelineEvent('a', 0, 10)
+ b = TimelineEvent('b', 11, 10)
+ timeline_model.AddEvent(a)
+ timeline_model.AddEvent(b)
+ timeline_model.DidFinishRecording()
+ self.assertEquals(1, len(timeline_model.GetAllOfName('a')))
« no previous file with comments | « tools/telemetry/telemetry/timeline_model.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698