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

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

Issue 717243002: Timeline: do not imply event.thread.target is the main target (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: avoid keep stale model in TimelineFrameModel 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/http/tests/inspector/timeline-test.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 function initialize_LayerTreeTests() 1 function initialize_LayerTreeTests()
2 { 2 {
3
4 InspectorTest.preloadPanel("layers");
5
6 InspectorTest.layerTreeModel = WebInspector.targetManager.mainTarget().layer TreeModel; 3 InspectorTest.layerTreeModel = WebInspector.targetManager.mainTarget().layer TreeModel;
7 4
8 InspectorTest.labelForLayer = function(layer) 5 InspectorTest.labelForLayer = function(layer)
9 { 6 {
10 var node = layer.nodeForSelfOrAncestor(); 7 var node = layer.nodeForSelfOrAncestor();
11 var label = node ? WebInspector.DOMPresentationUtils.fullQualifiedSelect or(node, false) : "<invalid node id>"; 8 var label = node ? WebInspector.DOMPresentationUtils.fullQualifiedSelect or(node, false) : "<invalid node id>";
12 var height = layer.height(); 9 var height = layer.height();
13 var width = layer.width(); 10 var width = layer.width();
14 if (height <= 200 && width <= 200) 11 if (height <= 200 && width <= 200)
15 label += " " + height + "x" + width; 12 label += " " + height + "x" + width;
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 }; 124 };
128 if (eventType === "mouseout") { 125 if (eventType === "mouseout") {
129 eventArguments.screenX = 0; 126 eventArguments.screenX = 0;
130 eventArguments.screenY = 0; 127 eventArguments.screenY = 0;
131 eventArguments.clientX = 0; 128 eventArguments.clientX = 0;
132 eventArguments.clientY = 0; 129 eventArguments.clientY = 0;
133 } 130 }
134 element.dispatchEvent(new MouseEvent(eventType, eventArguments)); 131 element.dispatchEvent(new MouseEvent(eventType, eventArguments));
135 } 132 }
136 } 133 }
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/inspector/timeline-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698