function test()
{
- WebInspector.showPanel("elements");
InspectorTest.nodeWithId("inspected", step1);
var backendCallCount = 0;
var nodeId;
- setTimeout(InspectorTest.completeTest.bind(InspectorTest), 3000);
- function onBackendCall(method)
+ function onBackendCall(domain, method, params)
{
- if (method === "CSS.getComputedStyleForNode")
+ if (method === "CSS.getComputedStyleForNode" && params.nodeId === nodeId)
++backendCallCount;
}
{
var callsLeft = 2;
nodeId = node.id;
- InspectorTest.addSniffer(InspectorBackendClass.prototype, "_wrapCallbackAndSendMessageObject", onBackendCall, true);
+ InspectorTest.addSniffer(InspectorBackend.connection(), "_wrapCallbackAndSendMessageObject", onBackendCall, true);
WebInspector.cssModel.getComputedStyleAsync(nodeId, styleCallback);
WebInspector.cssModel.getComputedStyleAsync(nodeId, styleCallback);
function styleCallback()