tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

browser_dbg-audiocontext.js (672B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
      4 
      5 // Test the AudioContext are paused and resume appropriately when using the
      6 // debugger.
      7 
      8 "use strict";
      9 
     10 add_task(async function () {
     11  const dbg = await initDebugger("doc-audiocontext.html");
     12 
     13  await invokeInTab("myFunction");
     14  await invokeInTab("suspendAC");
     15  invokeInTab("debuggerStatement");
     16  await waitForPaused(dbg);
     17  await resume(dbg);
     18  await invokeInTab("checkACState");
     19  ok(true, "No AudioContext state transition are caused by the debugger");
     20 });