| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <style> | 3 <style> |
| 4 div#img-container { | 4 div#img-container { |
| 5 position: relative; | 5 position: relative; |
| 6 width: 99px; | 6 width: 99px; |
| 7 height: 99px; | 7 height: 99px; |
| 8 overflow: clip; | 8 overflow: clip; |
| 9 } | 9 } |
| 10 </style> | 10 </style> |
| 11 <script src="../../../http/tests/inspector/inspector-test.js"></script> | 11 <script src="../../http/tests/inspector/inspector-test.js"></script> |
| 12 <script src="../../../http/tests/inspector/timeline-test.js"></script> | 12 <script src="../../http/tests/inspector/timeline-test.js"></script> |
| 13 <script src="../../tracing-test.js"></script> | 13 <script src="../tracing-test.js"></script> |
| 14 <script> | 14 <script> |
| 15 | 15 |
| 16 var images = [ | 16 var images = [ |
| 17 ["../resources/test.bmp", "25", "25"], | 17 ["../timeline/resources/test.bmp", "25", "25"], |
| 18 ["../resources/test.gif", "25", "25"], | 18 ["../timeline/resources/test.gif", "25", "25"], |
| 19 ["../resources/test.ico", "25", "25"], | 19 ["../timeline/resources/test.ico", "25", "25"], |
| 20 ["../resources/test.jpg", "25", "25"], | 20 ["../timeline/resources/test.jpg", "25", "25"], |
| 21 ["../resources/test.png", "25", "25"], | 21 ["../timeline/resources/test.png", "25", "25"], |
| 22 ["../resources/test.webp", "25", "25"], | 22 ["../timeline/resources/test.webp", "25", "25"], |
| 23 ["../resources/big.png", "150", "150"] | 23 ["../timeline/resources/big.png", "150", "150"] |
| 24 ]; | 24 ]; |
| 25 | 25 |
| 26 function showImages(callback) | 26 function showImages(callback) |
| 27 { | 27 { |
| 28 var nextImageIndex = 0; | 28 var nextImageIndex = 0; |
| 29 var imgElement = document.getElementById("img-container").firstElementChild; | 29 var imgElement = document.getElementById("img-container").firstElementChild; |
| 30 | 30 |
| 31 imgElement.addEventListener("load", imageLoaded); | 31 imgElement.addEventListener("load", imageLoaded); |
| 32 addImages(); | 32 addImages(); |
| 33 | 33 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 </script> | 76 </script> |
| 77 </head> | 77 </head> |
| 78 | 78 |
| 79 <body onload="runTest()"> | 79 <body onload="runTest()"> |
| 80 <p> | 80 <p> |
| 81 Tests the instrumentation of a DecodeImage and ResizeImage events | 81 Tests the instrumentation of a DecodeImage and ResizeImage events |
| 82 </p> | 82 </p> |
| 83 <div id="img-container"><img></div> | 83 <div id="img-container"><img></div> |
| 84 </body> | 84 </body> |
| 85 </html> | 85 </html> |
| OLD | NEW |