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

Unified Diff: LayoutTests/inspector/debugger/set-breakpoint.html

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/inspector/debugger/set-breakpoint.html
diff --git a/LayoutTests/inspector/debugger/set-breakpoint.html b/LayoutTests/inspector/debugger/set-breakpoint.html
index 82cebadcb4095aa178c0308a35a97e1681bb0935..2bf72b851e4c5754f99b904b8000f3e5ffe23c68 100644
--- a/LayoutTests/inspector/debugger/set-breakpoint.html
+++ b/LayoutTests/inspector/debugger/set-breakpoint.html
@@ -21,6 +21,7 @@ function testFunction()
var test = function()
{
var currentSourceFrame;
+ var expectedBreakpointId;
InspectorTest.setQuiet(true);
InspectorTest.runDebuggerTestSuite([
function testSetBreakpoint(next)
@@ -31,12 +32,21 @@ var test = function()
{
currentSourceFrame = sourceFrame;
InspectorTest.addResult("Script source was shown.");
+ InspectorTest.addSniffer(WebInspector.BreakpointManager.Breakpoint.prototype, "_didSetBreakpointInDebugger", didSetBreakpointInDebugger);
InspectorTest.setBreakpoint(currentSourceFrame, 16, "", true);
+ }
+
+ function didSetBreakpointInDebugger(breakpointId)
+ {
+ expectedBreakpointId = breakpointId;
InspectorTest.runTestFunctionAndWaitUntilPaused(didPause);
}
- function didPause(callFrames)
+ function didPause(callFrames, reason, auxData, breakpointIds)
yurys 2013/06/05 08:07:36 didPause signature didn't change in other tests, a
SeRya 2013/06/05 11:34:57 Done.
{
+ InspectorTest.assertEquals(breakpointIds.length, 1);
+ InspectorTest.assertEquals(breakpointIds.length && breakpointIds[0], expectedBreakpointId);
+
InspectorTest.addResult("Script execution paused.");
InspectorTest.captureStackTrace(callFrames);
dumpBreakpointSidebarPane();

Powered by Google App Engine
This is Rietveld 408576698