| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <style> | |
| 4 div.marker::before { | |
| 5 content: url(resources/test.bmp); | |
| 6 } | |
| 7 </style> | |
| 8 <script src="../../http/tests/inspector/inspector-test.js"></script> | |
| 9 <script src="../../http/tests/inspector/timeline-test.js"></script> | |
| 10 <script> | |
| 11 | |
| 12 function doActions(callback) | |
| 13 { | |
| 14 document.getElementById("marker").classList.add("marker"); | |
| 15 var img = document.createElement("img"); | |
| 16 img.src = "resources/test.bmp"; | |
| 17 img.addEventListener("load", onImageLoaded, false); | |
| 18 function onImageLoaded() | |
| 19 { | |
| 20 testRunner.displayAsyncThen(callback); | |
| 21 } | |
| 22 } | |
| 23 | |
| 24 function test() | |
| 25 { | |
| 26 InspectorTest.invokeAsyncWithTimeline("doActions", onRecordingDone); | |
| 27 | |
| 28 function onRecordingDone() | |
| 29 { | |
| 30 InspectorTest.addResult("DONE"); | |
| 31 InspectorTest.completeTest(); | |
| 32 } | |
| 33 } | |
| 34 </script> | |
| 35 </head> | |
| 36 | |
| 37 <body onload="runTest()"> | |
| 38 <p> | |
| 39 Tests the Timeline instrumentation does not crash the renderer upon encountering
an anonymous image render object | |
| 40 </p> | |
| 41 <div id="marker"></div> | |
| 42 </body> | |
| 43 </html> | |
| OLD | NEW |