The overall structure (loading the test page, opening Firebug, selecting Script panel) is pretty much the same as in the first test for the Net panel.

FBTestFirebug.waitForBreakInDebugger() waits till the script execution halts in the debugger.

FBTestFirebug.clickContinueButton() clicks on the Resume button to resume debugger's state.

Additional code that verifies some other aspects of the Firebug state can be within the callback.

FBTestFirebug.waitForBreakInDebugger(chrome, lineNo, breakpoint, callback)chrome Current Firebug's chrome object.lineNo Expected source line number where the break should happen.breakpoint Set to true if the break should happen on a breakpoint.callback Handler that is called when break happens.