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