Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(296)

Unified Diff: LayoutTests/inspector/timeline/timeline-paint.html

Issue 709423002: DevTools: remove old Timeline front-end implementation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated LayoutTests/inspector/layers/layer-canvas-log.html Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/inspector/timeline/timeline-paint.html
diff --git a/LayoutTests/inspector/timeline/timeline-paint.html b/LayoutTests/inspector/timeline/timeline-paint.html
deleted file mode 100644
index 2ea833958c1fa7a9dcdd77ae277b09d5a0f0c0a3..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/timeline/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.displayAsyncThen(callback);
- });
-}
-
-function updateSubframeAndDisplay(callback)
-{
- requestAnimationFrame(function() {
- frames[0].document.body.children[0].style.backgroundColor = "green";
- if (window.testRunner)
- testRunner.displayAsyncThen(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.data().clip;
- var subframePaint = paintRecord.children()[0];
- var subframeQuad = subframePaint.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>

Powered by Google App Engine
This is Rietveld 408576698