| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- | 2 <!-- |
| 3 Copyright (c) 2010 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 4 Use of this source code is governed by a BSD-style license that can be | 4 Use of this source code is governed by a BSD-style license that can be |
| 5 found in the LICENSE file. | 5 found in the LICENSE file. |
| 6 --> | 6 --> |
| 7 <html> | 7 <html> |
| 8 <head> | 8 <head> |
| 9 <title></title> | 9 <title></title> |
| 10 <link rel="stylesheet" href="timeline.css"> | 10 <link rel="stylesheet" href="timeline.css"> |
| 11 <!--<script src="http://closure-library.googlecode.com/svn/trunk/closure/goog/ba
se.js"></script>--> | 11 <!--<script src="http://closure-library.googlecode.com/svn/trunk/closure/goog/ba
se.js"></script>--> |
| 12 <script src="../shared/js/cr.js"></script> | 12 <script src="../shared/js/cr.js"></script> |
| 13 <script src="../shared/js/cr/event_target.js"></script> | 13 <script src="../shared/js/cr/event_target.js"></script> |
| 14 <script src="../shared/js/cr/ui.js"></script> | 14 <script src="../shared/js/cr/ui.js"></script> |
| 15 <script src="fast_rect_renderer.js"></script> | 15 <script src="fast_rect_renderer.js"></script> |
| 16 <script src="simulated_trace_data.js"></script> | 16 <script src="tracing_controller_tests.js"></script> |
| 17 <script src="sorted_array_utils.js"></script> | 17 <script src="sorted_array_utils.js"></script> |
| 18 <script src="timeline.js"></script> | 18 <script src="timeline.js"></script> |
| 19 <script src="timeline_track.js"></script> | 19 <script src="timeline_track.js"></script> |
| 20 <script src="timeline_model.js"></script> | 20 <script src="timeline_model.js"></script> |
| 21 <!-- | 21 <!-- |
| 22 <script> | 22 <script> |
| 23 | 23 |
| 24 goog.require('goog.testing.jsunit'); | 24 goog.require('goog.testing.jsunit'); |
| 25 | 25 |
| 26 </script> | 26 </script> |
| 27 --> | 27 --> |
| 28 </head> | 28 </head> |
| 29 <body> | 29 <body> |
| 30 <div id="sandbox"></div> | 30 <div id="sandbox"></div> |
| 31 <script> | 31 <script> |
| 32 | 32 |
| 33 var sandbox = document.getElementById('sandbox'); | 33 var sandbox = document.getElementById('sandbox'); |
| 34 var timeline; | 34 var timeline; |
| 35 | 35 |
| 36 function testTimeline() { | 36 function testTimeline() { |
| 37 model = new gpu.TimelineModel(); | 37 model = new gpu.TimelineModel(); |
| 38 model.importEvents(getTimelineTestData2()); | 38 model.importEvents(tracingControllerDataSet); |
| 39 timeline = new gpu.Timeline(); | 39 timeline = new gpu.Timeline(); |
| 40 timeline.model = model; | 40 timeline.model = model; |
| 41 sandbox.appendChild(timeline); | 41 sandbox.appendChild(timeline); |
| 42 } | 42 } |
| 43 document.addEventListener('DOMContentLoaded', testTimeline); | 43 document.addEventListener('DOMContentLoaded', testTimeline); |
| 44 </script> | 44 </script> |
| 45 | 45 |
| 46 </body> | 46 </body> |
| 47 </html> | 47 </html> |
| OLD | NEW |