Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / profiler / heap-snapshot-inspect-dom-wrapper.html
index 35ad658..cc8f685 100644 (file)
@@ -13,7 +13,7 @@ function handleLoad()
 
 function test()
 {
-    WebInspector.showPanel("profiles");
+    WebInspector.inspectorView.showPanel("profiles");
     var heapProfileType =  WebInspector.ProfileTypeRegistry.instance.heapSnapshotProfileType;
     heapProfileType.addEventListener(WebInspector.HeapSnapshotProfileType.SnapshotReceived, finishHeapSnapshot);
     InspectorTest.addSniffer(heapProfileType, "_snapshotReceived", snapshotReceived);
@@ -56,7 +56,7 @@ function test()
         function didGetObjectByHeapObjectId(error, object)
         {
             if (!error)
-                remoteObjects.push(WebInspector.RemoteObject.fromPayload(object));
+                remoteObjects.push(WebInspector.runtimeModel.createRemoteObject(object));
 
             if (++resolvedObjectsCount  === bodyWrapperIds.length)
                 requestPropertiesOfResolvedObjects();