| Index: third_party/WebKit/LayoutTests/inspector/profiler/cpu-profiler-stopped-removed-race.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector/profiler/cpu-profiler-stopped-removed-race.html b/third_party/WebKit/LayoutTests/inspector/profiler/cpu-profiler-stopped-removed-race.html
|
| index 6c53be76998e6a3b1dc93fda37fac954fe25154b..90321f1e7dc317abbd3a60210589d731d491ab7c 100644
|
| --- a/third_party/WebKit/LayoutTests/inspector/profiler/cpu-profiler-stopped-removed-race.html
|
| +++ b/third_party/WebKit/LayoutTests/inspector/profiler/cpu-profiler-stopped-removed-race.html
|
| @@ -9,10 +9,10 @@ function test()
|
| InspectorTest.runProfilerTestSuite([
|
| function testProfiling(next)
|
| {
|
| - var cpuProfiler = WebInspector.targetManager.mainTarget().cpuProfilerModel;
|
| - var targetManager = WebInspector.targetManager;
|
| - targetManager.addEventListener(WebInspector.TargetManager.Events.SuspendStateChanged, onSuspendStateChanged);
|
| - var profilesPanel = WebInspector.panels.profiles;
|
| + var cpuProfiler = SDK.targetManager.mainTarget().cpuProfilerModel;
|
| + var targetManager = SDK.targetManager;
|
| + targetManager.addEventListener(SDK.TargetManager.Events.SuspendStateChanged, onSuspendStateChanged);
|
| + var profilesPanel = UI.panels.profiles;
|
| InspectorTest.addSniffer(cpuProfiler, "stopRecording", stopRecording);
|
| InspectorTest.addSniffer(profilesPanel, "_addProfileHeader", onAddProfileHeader);
|
| profilesPanel.toggleRecord(); // Start profiling.
|
| @@ -25,7 +25,7 @@ function test()
|
|
|
| function onSuspendStateChanged()
|
| {
|
| - if (WebInspector.targetManager.allTargetsSuspended()) {
|
| + if (SDK.targetManager.allTargetsSuspended()) {
|
| InspectorTest.addResult("Suspending targets");
|
| return;
|
| }
|
|
|