| 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> |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 function test() | 56 function test() |
| 57 { | 57 { |
| 58 var imageCount = 0; | 58 var imageCount = 0; |
| 59 | 59 |
| 60 InspectorTest.invokeWithTracing("showImages", onTracingComplete); | 60 InspectorTest.invokeWithTracing("showImages", onTracingComplete); |
| 61 function onTracingComplete() | 61 function onTracingComplete() |
| 62 { | 62 { |
| 63 var events = InspectorTest.tracingTimelineModel().inspectedTargetEvents(
); | 63 var events = InspectorTest.tracingTimelineModel().inspectedTargetEvents(
); |
| 64 for (var i = 0; i < events.length; ++i) { | 64 for (var i = 0; i < events.length; ++i) { |
| 65 var event = events[i]; | 65 var event = events[i]; |
| 66 if (events[i].name !== WebInspector.TracingTimelineModel.RecordType.
DecodeImage) | 66 if (events[i].name !== WebInspector.TimelineModel.RecordType.DecodeI
mage) |
| 67 continue; | 67 continue; |
| 68 InspectorTest.addResult("event: " + event.name); | 68 InspectorTest.addResult("event: " + event.name); |
| 69 InspectorTest.addResult("imageURL: " + InspectorTest.formatters.form
atAsURL(event.imageURL)); | 69 InspectorTest.addResult("imageURL: " + InspectorTest.formatters.form
atAsURL(event.imageURL)); |
| 70 InspectorTest.addResult("backendNodeId: " + (event.backendNodeId > 0
? "present" : "absent")); | 70 InspectorTest.addResult("backendNodeId: " + (event.backendNodeId > 0
? "present" : "absent")); |
| 71 } | 71 } |
| 72 InspectorTest.completeTest(); | 72 InspectorTest.completeTest(); |
| 73 } | 73 } |
| 74 } | 74 } |
| 75 | 75 |
| 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 |