Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Unified Diff: LayoutTests/http/tests/inspector/debugger-test.js

Issue 15096004: Passing hit breakpoint IDs to ScriptDebugServer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
« no previous file with comments | « no previous file | LayoutTests/inspector/debugger/set-breakpoint.html » ('j') | LayoutTests/inspector/debugger/set-breakpoint.html » ('J')

Powered by Google App Engine
This is Rietveld 408576698