tor-browser

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

browser_dbg-event-handler.js (685B)


      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 that pausing within an event handler on an element does *not* show the
      6 // HTML page containing that element. It should show a sources tab containing
      7 // just the handler's text instead.
      8 
      9 "use strict";
     10 
     11 add_task(async function () {
     12  const dbg = await initDebugger("doc-event-handler.html");
     13 
     14  invokeInTab("synthesizeClick");
     15  await waitForPaused(dbg);
     16  const source = dbg.selectors.getSelectedSource();
     17  ok(!source.url, "Selected source should not have a URL");
     18 });