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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/layers-test.js

Issue 1945813002: cc: Make LayerTreeImpl dump layer list to FrameViewer and Devtools (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Force drawsContent for layout test Created 4 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 unified diff | Download patch
OLDNEW
1 function initialize_LayerTreeTests() 1 function initialize_LayerTreeTests()
2 { 2 {
3 InspectorTest.layerTreeModel = function() 3 InspectorTest.layerTreeModel = function()
4 { 4 {
5 if (!InspectorTest._layerTreeModel) 5 if (!InspectorTest._layerTreeModel)
6 InspectorTest._layerTreeModel = WebInspector.LayerTreeModel.fromTarg et(InspectorTest.mainTarget); 6 InspectorTest._layerTreeModel = WebInspector.LayerTreeModel.fromTarg et(InspectorTest.mainTarget);
7 return InspectorTest._layerTreeModel; 7 return InspectorTest._layerTreeModel;
8 } 8 }
9 9
10 InspectorTest.labelForLayer = function(layer) 10 InspectorTest.labelForLayer = function(layer)
(...skipping 14 matching lines...) Expand all
25 if (!prefix) 25 if (!prefix)
26 prefix = ""; 26 prefix = "";
27 if (!root) { 27 if (!root) {
28 root = InspectorTest.layerTreeModel().layerTree().contentRoot(); 28 root = InspectorTest.layerTreeModel().layerTree().contentRoot();
29 if (!root) { 29 if (!root) {
30 InspectorTest.addResult("No layer root, perhaps not in the compo sited mode! "); 30 InspectorTest.addResult("No layer root, perhaps not in the compo sited mode! ");
31 InspectorTest.completeTest(); 31 InspectorTest.completeTest();
32 return; 32 return;
33 } 33 }
34 } 34 }
35 InspectorTest.addResult(prefix + InspectorTest.labelForLayer(root)); 35 if (root.drawsContent())
vmpstr 2016/05/31 22:16:16 Why this change?
sunxd 2016/05/31 22:41:52 See the comment in layer-tree.html, the background
36 InspectorTest.addResult(prefix + InspectorTest.labelForLayer(root));
36 root.children().forEach(InspectorTest.dumpLayerTree.bind(InspectorTest, prefix + " ")); 37 root.children().forEach(InspectorTest.dumpLayerTree.bind(InspectorTest, prefix + " "));
37 } 38 }
38 39
39 InspectorTest.dumpLayers3DView = function(prefix, root) 40 InspectorTest.dumpLayers3DView = function(prefix, root)
40 { 41 {
41 if (!prefix) 42 if (!prefix)
42 prefix = ""; 43 prefix = "";
43 if (!root) 44 if (!root)
44 root = WebInspector.panels.layers._layers3DView._rotatingContainerEl ement; 45 root = WebInspector.panels.layers._layers3DView._rotatingContainerEl ement;
45 if (root.__layer) 46 if (root.__layer)
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 }; 119 };
119 if (eventType === "mouseout") { 120 if (eventType === "mouseout") {
120 eventArguments.screenX = 0; 121 eventArguments.screenX = 0;
121 eventArguments.screenY = 0; 122 eventArguments.screenY = 0;
122 eventArguments.clientX = 0; 123 eventArguments.clientX = 0;
123 eventArguments.clientY = 0; 124 eventArguments.clientY = 0;
124 } 125 }
125 element.dispatchEvent(new MouseEvent(eventType, eventArguments)); 126 element.dispatchEvent(new MouseEvent(eventType, eventArguments));
126 } 127 }
127 } 128 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698