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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/layers/paint-profiler.html

Issue 2954343004: [DevTools] Migrate inspector-protocol/layers tests to new harness (Closed)
Patch Set: fix test Created 3 years, 6 months 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: third_party/WebKit/LayoutTests/inspector-protocol/layers/paint-profiler.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/layers/paint-profiler.html b/third_party/WebKit/LayoutTests/inspector-protocol/layers/paint-profiler.html
deleted file mode 100644
index 06134e060e0c43dd8d1714736bfd892fa4e3b721..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector-protocol/layers/paint-profiler.html
+++ /dev/null
@@ -1,66 +0,0 @@
-<html>
-<head>
-<style type="text/css">
-.composited {
- position: absolute;
- top: 25px;
- left: 25px;
- width: 50px;
- height: 50px;
- background-color: blue;
- transform: translateZ(10px);
-}
-</style>
-<script type="application/x-javascript" src="../../http/tests/inspector-protocol/resources/inspector-protocol-test.js"></script>
-<script type="application/x-javascript" src="../resources/layer-protocol-test.js"></script>
-<script type="application/x-javascript">
-
-function test()
-{
- var documentNode;
- var initialLayers;
- var modifiedLayers;
-
- InspectorTest.enableLayerTreeAgent(gotLayerTree);
-
- function gotLayerTree(layers)
- {
- var matchingLayers = layers.filter(function(layer) { return !!(layer.backendNodeId && layer.transform); });
- InspectorTest.log("matchingLayers.length: " + matchingLayers.length);
- var layerId = matchingLayers[0].layerId;
-
- InspectorTest.sendCommand("LayerTree.makeSnapshot", {"layerId": layerId}, InspectorTest.wrapCallback(gotSnapshot));
- }
- var snapshotId;
- function gotSnapshot(result)
- {
- snapshotId = result.snapshotId;
- InspectorTest.sendCommand("LayerTree.profileSnapshot", {"snapshotId": snapshotId, "minRepeatCount":4, "minDuration": 0}, InspectorTest.wrapCallback(gotProfile));
- }
- function gotProfile(result)
- {
- var timings = result.timings;
- InspectorTest.log("Profile array length: " + result.timings.length);
- for (var i = 0; i < result.timings.length; ++i) {
- InspectorTest.log("Profile subarray " + i + " length: " + result.timings[i].length);
- for (var j = 0; j < result.timings[i].length; ++j)
- InspectorTest.log("Profile timing [" + i + "][" + j + "] is a number: " + (result.timings[i][j] >= 0));
- }
- InspectorTest.sendCommand("LayerTree.replaySnapshot", {"snapshotId": snapshotId, "fromStep": 2, "toStep": result.timings[0].length - 2}, InspectorTest.wrapCallback(replayedSnapshot));
- }
- function replayedSnapshot(result)
- {
- InspectorTest.log("LayerTree.replaySnapshot returned valid image: " + /^data:image\/png;base64,/.test(result.dataURL));
- InspectorTest.log("DONE!");
- InspectorTest.completeTest();
- }
-}
-
-</script>
-<body onload="runTest()">
- <div class="composited">
- Sanity test for DevTools Paint Profiler.
- </div>
-</body>
-</html>
-

Powered by Google App Engine
This is Rietveld 408576698