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

Side by Side Diff: LayoutTests/inspector/layers-test.js

Issue 23050018: DevTools: expose layer compositing reasons and paint count via layer tree agent (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixed gcc build Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 function initialize_LayerTreeTests() 1 function initialize_LayerTreeTests()
2 { 2 {
3 // FIXME: remove once out of experimental. 3 // FIXME: remove once out of experimental.
4 WebInspector.inspectorView.addPanel(new WebInspector.LayersPanelDescriptor() ); 4 WebInspector.inspectorView.addPanel(new WebInspector.LayersPanelDescriptor() );
5 InspectorTest._layerTreeModel = WebInspector.panel("layers")._model; 5 InspectorTest._layerTreeModel = WebInspector.panel("layers")._model;
6 6
7 InspectorTest.labelForLayer = function(layer) 7 InspectorTest.labelForLayer = function(layer)
8 { 8 {
9 var node = WebInspector.domAgent.nodeForId(layer.nodeIdForSelfOrAncestor ()); 9 var node = WebInspector.domAgent.nodeForId(layer.nodeIdForSelfOrAncestor ());
10 var label = node.appropriateSelectorFor(false); 10 var label = node.appropriateSelectorFor(false);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 { 51 {
52 if (!layer.nodeId()) 52 if (!layer.nodeId())
53 return false; 53 return false;
54 var node = WebInspector.domAgent.nodeForId(layer.nodeId()); 54 var node = WebInspector.domAgent.nodeForId(layer.nodeId());
55 if (!node || node.getAttribute("id") !== nodeIdAttribute) 55 if (!node || node.getAttribute("id") !== nodeIdAttribute)
56 return false; 56 return false;
57 result = layer; 57 result = layer;
58 return true; 58 return true;
59 } 59 }
60 InspectorTest._layerTreeModel.forEachLayer(testLayer); 60 InspectorTest._layerTreeModel.forEachLayer(testLayer);
61 if (!result)
62 InspectorTest.addResult("ERROR: No layer for " + nodeIdAttribute);
61 return result; 63 return result;
62 } 64 }
63 } 65 }
OLDNEW
« no previous file with comments | « LayoutTests/inspector/layer-tree-model.html ('k') | LayoutTests/inspector/resources/composited-iframe.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698