| OLD | NEW | 
|---|
|  | (Empty) | 
| 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 |  | 
| 3 # found in the LICENSE file. |  | 
| 4 |  | 
| 5 import unittest |  | 
| 6 |  | 
| 7 from telemetry.timeline_event import TimelineEvent |  | 
| 8 from telemetry.timeline_model import TimelineModel |  | 
| 9 |  | 
| 10 class TimelineModelUnittest(unittest.TestCase): |  | 
| 11   def testTimelineEventsOfType(self): |  | 
| 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.GetAllOfName('a'))) |  | 
| OLD | NEW | 
|---|