Bug 783810 - Intermittent browser_dbg_location-changes-new.js | There should be a selected script, | The source editor should have some text displayed, | The menulist should not display a notice that there are no scripts availalble, | The menulist should have a too... - r=robcee
authorVictor Porof <vporof@mozilla.com>
Wed, 29 Aug 2012 03:17:18 +0300
changeset 103493 6f51a780a6e607d53c4c6b0d5d79d0d200c383bf
parent 103492 765c575daef9661baa14316101f34a61fd6890d7
child 103494 a1adb4d46c3f7affad1cfd3ddfb22044fee16733
push id1049
push userprouget@mozilla.com
push dateThu, 30 Aug 2012 13:43:08 +0000
treeherderfx-team@6f51a780a6e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrobcee
bugs783810
milestone17.0a1
Bug 783810 - Intermittent browser_dbg_location-changes-new.js | There should be a selected script, | The source editor should have some text displayed, | The menulist should not display a notice that there are no scripts availalble, | The menulist should have a too... - r=robcee
browser/devtools/debugger/test/browser_dbg_location-changes-new.js
--- a/browser/devtools/debugger/test/browser_dbg_location-changes-new.js
+++ b/browser/devtools/debugger/test/browser_dbg_location-changes-new.js
@@ -54,17 +54,17 @@ function testSimpleCall() {
 
 function testLocationChange()
 {
   gDebugger.DebuggerController.activeThread.resume(function() {
     gDebugger.DebuggerController.client.addOneTimeListener("tabNavigated", function(aEvent, aPacket) {
       ok(true, "tabNavigated event was fired.");
       info("Still attached to the tab.");
 
-      gDebugger.addEventListener("Debugger:AfterScriptsAdded", function _onEvent(aEvent) {
+      gDebugger.addEventListener("Debugger:AfterNewScript", function _onEvent(aEvent) {
         gDebugger.removeEventListener(aEvent.type, _onEvent);
 
         isnot(gDebugger.DebuggerView.Scripts.selected, null,
           "There should be a selected script.");
         isnot(gDebugger.editor.getText().length, 0,
           "The source editor should have some text displayed.");
 
         let menulist = gDebugger.DebuggerView.Scripts._scripts;