| Index: LayoutTests/inspector/timeline/timeline-decode-resize.html
|
| diff --git a/LayoutTests/inspector/timeline/timeline-decode-resize.html b/LayoutTests/inspector/timeline/timeline-decode-resize.html
|
| deleted file mode 100644
|
| index d9c472ca70d370b1541e26d77a89bfbe8fddd187..0000000000000000000000000000000000000000
|
| --- a/LayoutTests/inspector/timeline/timeline-decode-resize.html
|
| +++ /dev/null
|
| @@ -1,82 +0,0 @@
|
| -<html>
|
| -<head>
|
| -<style>
|
| -div#img-container {
|
| - position: relative;
|
| - width: 99px;
|
| - height: 99px;
|
| - overflow: clip;
|
| -}
|
| -</style>
|
| -<script src="../../http/tests/inspector/inspector-test.js"></script>
|
| -<script src="../../http/tests/inspector/timeline-test.js"></script>
|
| -<script>
|
| -
|
| -var images = [
|
| - ["resources/test.bmp", "25", "25"],
|
| - ["resources/test.gif", "25", "25"],
|
| - ["resources/test.ico", "25", "25"],
|
| - ["resources/test.jpg", "25", "25"],
|
| - ["resources/test.png", "25", "25"],
|
| - ["resources/test.webp", "25", "25"],
|
| - ["resources/big.png", "150", "150"]
|
| -];
|
| -
|
| -function displayImages(callback)
|
| -{
|
| - var currentImage = 0;
|
| -
|
| - var img = document.getElementById("img-container").firstElementChild;
|
| - img.addEventListener("load", onImageLoaded, false);
|
| -
|
| - if (window.testRunner)
|
| - testRunner.displayAsyncThen(showNextImage);
|
| -
|
| - function showNextImage()
|
| - {
|
| - if (currentImage >= images.length) {
|
| - callback();
|
| - return;
|
| - }
|
| - img.width = images[currentImage][1];
|
| - img.height = images[currentImage][2];
|
| - img.src = images[currentImage][0];
|
| - currentImage++;
|
| - }
|
| -
|
| - function onImageLoaded()
|
| - {
|
| - if (window.testRunner)
|
| - testRunner.displayAsyncThen(showNextImage);
|
| - }
|
| -}
|
| -
|
| -function test()
|
| -{
|
| - InspectorTest.invokeAsyncWithTimeline("displayImages", dumpRecords);
|
| -
|
| - function dumpRecords(records)
|
| - {
|
| - InspectorTest.timelineModel().forAllRecords(processRecord.bind(this));
|
| - function processRecord(record)
|
| - {
|
| - if (record.type() === WebInspector.TimelineModel.RecordType.DecodeImage || record.type() === WebInspector.TimelineModel.RecordType.ResizeImage) {
|
| - // Some decode events may happen in the background, so we won't have a stack trace.
|
| - delete record._record.stackTrace;
|
| - InspectorTest.printTimelineRecordProperties(record);
|
| - }
|
| - }
|
| - InspectorTest.completeTest();
|
| - }
|
| -}
|
| -
|
| -</script>
|
| -</head>
|
| -
|
| -<body onload="runTest()">
|
| -<p>
|
| -Tests the Timeline API instrumentation of a DecodeImage and ResizeImage events
|
| -</p>
|
| -<div id="img-container"><img></div>
|
| -</body>
|
| -</html>
|
|
|