| Index: third_party/WebKit/LayoutTests/inspector/tracing/timeline-paint.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-paint.html b/third_party/WebKit/LayoutTests/inspector/tracing/timeline-paint.html
|
| deleted file mode 100644
|
| index 0557b71b91de9e9d659372be1c37615398e25015..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/LayoutTests/inspector/tracing/timeline-paint.html
|
| +++ /dev/null
|
| @@ -1,70 +0,0 @@
|
| -<html>
|
| -<head>
|
| -<script src="../../http/tests/inspector/inspector-test.js"></script>
|
| -<script src="../../http/tests/inspector/timeline-test.js"></script>
|
| -<script>
|
| -
|
| -function display(callback)
|
| -{
|
| - requestAnimationFrame(function() {
|
| - document.body.style.backgroundColor = "blue";
|
| - if (window.testRunner)
|
| - testRunner.layoutAndPaintAsyncThen(callback);
|
| - });
|
| -}
|
| -
|
| -function updateSubframeAndDisplay(callback)
|
| -{
|
| - requestAnimationFrame(function() {
|
| - frames[0].document.body.children[0].style.backgroundColor = "green";
|
| - if (window.testRunner)
|
| - testRunner.layoutAndPaintAsyncThen(callback);
|
| - });
|
| -}
|
| -
|
| -function test()
|
| -{
|
| - InspectorTest.invokeAsyncWithTimeline("display", step1);
|
| -
|
| - function step1(records)
|
| - {
|
| - var record = InspectorTest.findFirstTimelineRecord(WebInspector.TimelineModel.RecordType.Paint);
|
| - if (record)
|
| - InspectorTest.printTimelineRecordProperties(record);
|
| - else
|
| - InspectorTest.addResult("FAIL: no paint record found");
|
| - InspectorTest.invokeAsyncWithTimeline("updateSubframeAndDisplay", step3);
|
| - }
|
| -
|
| - function step3(records)
|
| - {
|
| - var paintRecord = InspectorTest.findFirstTimelineRecord(WebInspector.TimelineModel.RecordType.Paint);
|
| - InspectorTest.assertTrue(paintRecord, "Paint record with subframe paint not found");
|
| - var topQuad = paintRecord.traceEvent().args["data"].clip;
|
| - var subframePaint = paintRecord.children()[0];
|
| - var subframeQuad = subframePaint.traceEvent().args["data"].clip;
|
| - InspectorTest.assertEquals(8, topQuad.length);
|
| - InspectorTest.assertEquals(8, subframeQuad.length);
|
| - InspectorTest.assertGreaterOrEqual(subframeQuad[0], topQuad[0]);
|
| - InspectorTest.assertGreaterOrEqual(subframeQuad[1], topQuad[1]);
|
| - InspectorTest.assertGreaterOrEqual(topQuad[2], subframeQuad[2]);
|
| - InspectorTest.assertGreaterOrEqual(subframeQuad[3], topQuad[3]);
|
| - InspectorTest.assertGreaterOrEqual(topQuad[4], subframeQuad[4]);
|
| - InspectorTest.assertGreaterOrEqual(topQuad[5], subframeQuad[5]);
|
| - InspectorTest.assertGreaterOrEqual(subframeQuad[6], topQuad[6]);
|
| - InspectorTest.assertGreaterOrEqual(topQuad[7], subframeQuad[7]);
|
| -
|
| - InspectorTest.completeTest();
|
| - }
|
| -}
|
| -
|
| -</script>
|
| -</head>
|
| -
|
| -<body onload="runTest()">
|
| -<p>
|
| -Tests the Timeline API instrumentation of a paint event
|
| -</p>
|
| -<iframe src="resources/timeline-iframe-paint.html" style="position: absolute; left: 40px; top: 40px; width: 100px; height: 100px; border: none"></iframe>
|
| -</body>
|
| -</html>
|
|
|