| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <html> | 2 <html> |
| 3 <!-- | 3 <!-- |
| 4 Copyright (c) 2011 The Chromium Authors. All rights reserved. | 4 Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 5 Use of this source code is governed by a BSD-style license that can be | 5 Use of this source code is governed by a BSD-style license that can be |
| 6 found in the LICENSE file. | 6 found in the LICENSE file. |
| 7 --> | 7 --> |
| 8 <head i18n-values="dir:textdirection;"> | 8 <head i18n-values="dir:textdirection;"> |
| 9 <title>Interactive Timeline Tests</title> | 9 <title>Interactive Timeline Tests</title> |
| 10 <link rel="stylesheet" href="timeline.css"> | 10 <link rel="stylesheet" href="timeline.css"> |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 <div class="timeline-test" src="./tests/tall_trace.json"> | 39 <div class="timeline-test" src="./tests/tall_trace.json"> |
| 40 </div> | 40 </div> |
| 41 | 41 |
| 42 <div class="timeline-test" src="./tests/big_trace.json"> | 42 <div class="timeline-test" src="./tests/big_trace.json"> |
| 43 </div> | 43 </div> |
| 44 | 44 |
| 45 <div class="timeline-test" src="./tests/huge_trace.json"> | 45 <div class="timeline-test" src="./tests/huge_trace.json"> |
| 46 </div> | 46 </div> |
| 47 | 47 |
| 48 <div class="timeline-test" src="./tests/main_thread_has_unclosed_slices.json"> |
| 49 </div> |
| 50 |
| 48 <script> | 51 <script> |
| 49 function load(parentEl) { | 52 function load(parentEl) { |
| 50 var src = parentEl.getAttribute('src'); | 53 var src = parentEl.getAttribute('src'); |
| 51 if (document.location.hash && document.location.hash.substring(1) != src) { | 54 if (document.location.hash && document.location.hash.substring(1) != src) { |
| 52 parentEl.hidden = true; | 55 parentEl.hidden = true; |
| 53 return; | 56 return; |
| 54 } | 57 } |
| 55 parentEl.hidden = false; | 58 parentEl.hidden = false; |
| 56 parentEl.textContent = ''; | 59 parentEl.textContent = ''; |
| 57 var titleEl = document.createElement('h3'); | 60 var titleEl = document.createElement('h3'); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 function onLoad() { | 94 function onLoad() { |
| 92 Array.prototype.forEach.call(document.querySelectorAll('.timeline-test'), | 95 Array.prototype.forEach.call(document.querySelectorAll('.timeline-test'), |
| 93 load); | 96 load); |
| 94 } | 97 } |
| 95 | 98 |
| 96 document.addEventListener('DOMContentLoaded', onLoad); | 99 document.addEventListener('DOMContentLoaded', onLoad); |
| 97 window.addEventListener('hashchange', onLoad); | 100 window.addEventListener('hashchange', onLoad); |
| 98 </script> | 101 </script> |
| 99 </body> | 102 </body> |
| 100 </html> | 103 </html> |
| OLD | NEW |