B2G/gecko/browser/devtools/debugger/test/browser_dbg_scripts-searching-01.js
/**
 * Tests basic functionality of scripts filtering (token search and line jump).
 */
Tests basic functionality of scripts filtering (token search and line jump).
Tests basic functionality of scripts filtering ( token search and line jump ) .
function test()
{
  let scriptShown = false;
  let framesAdded = false;
  debug_tab_pane(STACK_URL, function(aTab, aDebuggee, aPane) {
    gTab = aTab;
    gDebuggee = aDebuggee;
    gPane = aPane;
    gDebugger = gPane.contentWindow;
    gDebugger.DebuggerController.activeThread.addOneTimeListener("framesadded", function() {
      framesAdded = true;
      runTest();
    });
    gDebuggee.simpleCall();
  });
  window.addEventListener("Debugger:ScriptShown", function _onEvent(aEvent) {
    window.removeEventListener(aEvent.type, _onEvent);
    scriptShown = true;
    runTest();
  });
  function runTest()
  {
    if (scriptShown && framesAdded) {
      Services.tm.currentThread.dispatch({ run: testScriptSearching }, 0);
    }
  }
}
function test ( ) { let scriptShown = false ; let framesAdded = false ; debug_tab_pane ( STACK_URL , function ( aTab , aDebuggee , aPane ) { gTab = aTab ; gDebuggee = aDebuggee ; gPane = aPane ; gDebugger = gPane . contentWindow ; gDebugger . DebuggerController . activeThread . addOneTimeListener ( "framesadded" , function ( ) { framesAdded = true ; runTest ( ) ; } ) ; gDebuggee . simpleCall ( ) ; } ) ; window . addEventListener ( "Debugger:ScriptShown" , function _onEvent ( aEvent ) { window . removeEventListener ( aEvent . type , _onEvent ) ; scriptShown = true ; runTest ( ) ; } ) ; function runTest ( ) { if ( scriptShown && framesAdded ) { Services . tm . currentThread . dispatch ( { run : testScriptSearching } , 0 ) ; } } }
Tests basic functionality of scripts filtering (token search and line jump).
Tests basic functionality of scripts filtering ( token search and line jump ) .