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

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

Issue 460323002: DevTools: Allow dynamic module registration only in tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 runtime.registerModule("layers"); 4 InspectorTest.registerModule("layers");
5 var extensions = runtime.extensions(WebInspector.Panel).forEach(function(ext ension) { 5 var extensions = runtime.extensions(WebInspector.Panel).forEach(function(ext ension) {
6 if (extension.module().name() === "layers") 6 if (extension.module().name() === "layers")
7 WebInspector.inspectorView.addPanel(new WebInspector.RuntimeExtensio nPanelDescriptor(extension)); 7 WebInspector.inspectorView.addPanel(new WebInspector.RuntimeExtensio nPanelDescriptor(extension));
8 }); 8 });
9 InspectorTest.layerTreeModel = WebInspector.inspectorView.panel("layers")._m odel; 9 InspectorTest.layerTreeModel = WebInspector.inspectorView.panel("layers")._m odel;
10 InspectorTest.layers3DView = WebInspector.inspectorView.panel("layers")._lay ers3DView; 10 InspectorTest.layers3DView = WebInspector.inspectorView.panel("layers")._lay ers3DView;
11 11
12 InspectorTest.labelForLayer = function(layer) 12 InspectorTest.labelForLayer = function(layer)
13 { 13 {
14 var node = layer.nodeForSelfOrAncestor(); 14 var node = layer.nodeForSelfOrAncestor();
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 }; 131 };
132 if (eventType === "mouseout") { 132 if (eventType === "mouseout") {
133 eventArguments.screenX = 0; 133 eventArguments.screenX = 0;
134 eventArguments.screenY = 0; 134 eventArguments.screenY = 0;
135 eventArguments.clientX = 0; 135 eventArguments.clientX = 0;
136 eventArguments.clientY = 0; 136 eventArguments.clientY = 0;
137 } 137 }
138 element.dispatchEvent(new MouseEvent(eventType, eventArguments)); 138 element.dispatchEvent(new MouseEvent(eventType, eventArguments));
139 } 139 }
140 } 140 }
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/inspector/inspector-test.js ('k') | LayoutTests/inspector/documentation/document-parser.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698