Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / profiler / cpu-profiler-save-load.html
index ae86ecc..32359c4 100644 (file)
@@ -44,9 +44,9 @@ function test()
         {
             function waitForTempFile(view)
             {
-                InspectorTest.addSniffer(view.profile, "_writeToTempFile", saveProfileToFile.bind(this, view));
+                InspectorTest.addSniffer(view._profileHeader, "_writeToTempFile", saveProfileToFile.bind(this, view._profileHeader));
             }
-            function saveProfileToFile(view)
+            function saveProfileToFile(profile)
             {
                 WebInspector.FileOutputStream = function() { }
                 WebInspector.FileOutputStream.prototype = {
@@ -81,7 +81,7 @@ function test()
                     }
                 }
 
-                view.profile.saveToFile();
+                profile.saveToFile();
             }
             InspectorTest.showProfileWhenAdded("manual");
             InspectorTest.waitUntilProfileViewIsShown("manual", waitForTempFile.bind(this));