X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FLayoutTests%2Fhttp%2Ftests%2Finspector%2Flayers-test.js;h=6e019d7e1d9a2884200045236e0632c85e40c475;hb=ff3e2503a20db9193d323c1d19c38c68004dec4a;hp=76ec232b17192bb485595c8d6afb9a5a6fd5fa52;hpb=7338fba38ba696536d1cc9d389afd716a6ab2fe6;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/LayoutTests/http/tests/inspector/layers-test.js b/src/third_party/WebKit/LayoutTests/http/tests/inspector/layers-test.js index 76ec232..6e019d7 100644 --- a/src/third_party/WebKit/LayoutTests/http/tests/inspector/layers-test.js +++ b/src/third_party/WebKit/LayoutTests/http/tests/inspector/layers-test.js @@ -11,7 +11,7 @@ function initialize_LayerTreeTests() InspectorTest.labelForLayer = function(layer) { var node = WebInspector.domAgent.nodeForId(layer.nodeIdForSelfOrAncestor()); - var label = WebInspector.DOMPresentationUtils.appropriateSelectorFor(node, false); + var label = WebInspector.DOMPresentationUtils.fullQualifiedSelector(node, false); var height = layer.height(); var width = layer.width(); if (height <= 200 && width <= 200) @@ -67,8 +67,9 @@ function initialize_LayerTreeTests() InspectorTest._layerTreeModel.removeEventListener(WebInspector.LayerTreeModel.Events.LayerTreeChanged, eventHandler); callback(); } - InspectorTest._layerTreeModel.addEventListener(WebInspector.LayerTreeModel.Events.LayerTreeChanged, eventHandler); - InspectorTest.evaluateInPage(expression, function() {}); + InspectorTest.evaluateInPage(expression, function() { + InspectorTest._layerTreeModel.addEventListener(WebInspector.LayerTreeModel.Events.LayerTreeChanged, eventHandler); + }); } InspectorTest.findLayerByNodeIdAttribute = function(nodeIdAttribute) @@ -100,5 +101,4 @@ function initialize_LayerTreeTests() callback(); } } - }