Index: LayoutTests/inspector/profiler/cpu-profiler-profile-removal.html |
diff --git a/LayoutTests/inspector/profiler/cpu-profiler-profile-removal.html b/LayoutTests/inspector/profiler/cpu-profiler-profile-removal.html |
index bbecd64adf4f55f719bbf22a4221a6c07efec41e..cb081b040aea85e8b6c9e5081c4af8d13c6cd27c 100644 |
--- a/LayoutTests/inspector/profiler/cpu-profiler-profile-removal.html |
+++ b/LayoutTests/inspector/profiler/cpu-profiler-profile-removal.html |
@@ -16,7 +16,7 @@ function pageFunction() { |
function test() |
{ |
InspectorTest.startProfilerTest(function() { |
- function viewLoaded(view) { |
+ function viewLoaded() { |
var profiles = WebInspector.panels.profiles; |
var type = WebInspector.ProfileTypeRegistry.instance.cpuProfileType; |
while (type.getProfiles().length !== 0) |
@@ -31,7 +31,7 @@ function test() |
WebInspector.inspectorView.showPanel("profiles"); |
InspectorTest.evaluateInConsole("pageFunction()", function() {}); |
InspectorTest.showProfileWhenAdded("p2"); |
- InspectorTest.waitUntilProfileViewIsShown("p2", viewLoaded); |
+ InspectorTest.waitUntilProfileViewIsShown("p2", setTimeout.bind(null, viewLoaded, 0)); |
}); |
} |