Bug 981258 - Replace 'waitForSourceShown' with 'ensureSourceIs' to fix intermittent browser_dbg_breakpoints-break-on-last-line-of-script-on-reload.js; r=past
authorNick Fitzgerald <fitzgen@gmail.com>
Fri, 14 Mar 2014 10:15:43 -0700
changeset 191807 d385989f455b360122bab5bafc3e2a56cace1b3c
parent 191806 0e2a2db3af5cf889e7d5eaff83362d3780be00f1
child 191808 2569cd05832a3368df78a1540a0de3d6f325cd0e
push id474
push userasasaki@mozilla.com
push dateMon, 02 Jun 2014 21:01:02 +0000
treeherdermozilla-release@967f4cf1b31c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspast
bugs981258
milestone30.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 981258 - Replace 'waitForSourceShown' with 'ensureSourceIs' to fix intermittent browser_dbg_breakpoints-break-on-last-line-of-script-on-reload.js; r=past
browser/devtools/debugger/test/browser_dbg_breakpoints-break-on-last-line-of-script-on-reload.js
--- a/browser/devtools/debugger/test/browser_dbg_breakpoints-break-on-last-line-of-script-on-reload.js
+++ b/browser/devtools/debugger/test/browser_dbg_breakpoints-break-on-last-line-of-script-on-reload.js
@@ -18,17 +18,17 @@ function test() {
     gPanel = aPanel;
     gDebugger = gPanel.panelWin;
     gThreadClient = gDebugger.gThreadClient;
     gEvents = gDebugger.EVENTS;
 
     Task.spawn(function* () {
       try {
 
-        yield waitForSourceShown(gPanel, CODE_URL);
+        yield ensureSourceIs(gPanel, CODE_URL, true);
 
         // Pause and set our breakpoints.
         yield doInterrupt();
         const [bp1, bp2, bp3] = yield promise.all([
           setBreakpoint({
             url: CODE_URL,
             line: 2
           }),