| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import unittest | 5 import unittest |
| 6 | 6 |
| 7 from telemetry.core.timeline.event import TimelineEvent | |
| 8 from telemetry.core.timeline.model import TimelineModel | |
| 9 | |
| 10 class TimelineModelUnittest(unittest.TestCase): | 7 class TimelineModelUnittest(unittest.TestCase): |
| 11 def testTimelineEventsOfType(self): | 8 pass |
| 12 timeline_model = TimelineModel() | |
| 13 a = TimelineEvent('a', 0, 10) | |
| 14 b = TimelineEvent('b', 11, 10) | |
| 15 timeline_model.AddEvent(a) | |
| 16 timeline_model.AddEvent(b) | |
| 17 timeline_model.DidFinishRecording() | |
| 18 self.assertEquals(1, len(timeline_model.GetAllEventsOfName('a'))) | |
| OLD | NEW |