Chromium Code Reviews| Index: LayoutTests/http/tests/inspector/debugger-test.js |
| diff --git a/LayoutTests/http/tests/inspector/debugger-test.js b/LayoutTests/http/tests/inspector/debugger-test.js |
| index 2b46da2bdaa2757df7e17ae643dc33b0f681296a..8384b203035ea63a7ece65ea4732ea96b92e6333 100644 |
| --- a/LayoutTests/http/tests/inspector/debugger-test.js |
| +++ b/LayoutTests/http/tests/inspector/debugger-test.js |
| @@ -82,8 +82,8 @@ InspectorTest.waitUntilPaused = function(callback) |
| { |
| callback = InspectorTest.safeWrap(callback); |
| - if (InspectorTest._callFrames) |
| - callback(InspectorTest._callFrames); |
| + if (InspectorTest._pausedScriptData) |
| + callback.apply(callback, InspectorTest._pausedScriptData); |
|
yurys
2013/06/05 08:07:36
Please pass arguments explicitly (it is easier to
SeRya
2013/06/05 11:34:57
Done.
|
| else |
| InspectorTest._waitUntilPausedCallback = callback; |
| }; |
| @@ -92,7 +92,7 @@ InspectorTest.waitUntilResumed = function(callback) |
| { |
| callback = InspectorTest.safeWrap(callback); |
| - if (!InspectorTest._callFrames) |
| + if (!InspectorTest._pausedScriptData) |
| callback(); |
| else |
| InspectorTest._waitUntilResumedCallback = callback; |
| @@ -134,15 +134,15 @@ InspectorTest.dumpSourceFrameContents = function(sourceFrame) |
| InspectorTest.addResult("==Source frame contents end=="); |
| }; |
| -InspectorTest._pausedScript = function(callFrames, reason, auxData) |
| +InspectorTest._pausedScript = function(callFrames, reason, auxData, breakpointIds) |
| { |
| if (!InspectorTest._quiet) |
| InspectorTest.addResult("Script execution paused."); |
| - InspectorTest._callFrames = callFrames; |
| + InspectorTest._pausedScriptData = Array.prototype.slice.call(arguments); |
| if (InspectorTest._waitUntilPausedCallback) { |
| var callback = InspectorTest._waitUntilPausedCallback; |
| delete InspectorTest._waitUntilPausedCallback; |
| - callback(InspectorTest._callFrames); |
| + callback.apply(callback, InspectorTest._pausedScriptData); |
| } |
| } |
| @@ -150,7 +150,7 @@ InspectorTest._resumedScript = function() |
| { |
| if (!InspectorTest._quiet) |
| InspectorTest.addResult("Script execution resumed."); |
| - delete InspectorTest._callFrames; |
| + delete InspectorTest._pausedScriptData; |
| if (InspectorTest._waitUntilResumedCallback) { |
| var callback = InspectorTest._waitUntilResumedCallback; |
| delete InspectorTest._waitUntilResumedCallback; |