/* Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/publicdomain/zero/1.0/ */

// Tests that when  pause on next is selected, we  pause on the next execution

add_task(async function() {
  const dbg = await initDebugger("doc-scripts.html");

  clickElement(dbg, "pause");
  await waitForState(dbg, state => dbg.selectors.getIsWaitingOnBreak(state))
  invokeInTab("simple");

  await waitForPaused(dbg);
  assertPaused(dbg);
});

@@ -423,16 +423,27 @@
 used(dbg
+, %22simple3%22
 );%0A  ass

Fix pause-on-next intermittent (#6292)