tor-browser

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

browser_jsonview_slash.js (458B)


      1 /* Any copyright is dedicated to the Public Domain.
      2 * http://creativecommons.org/publicdomain/zero/1.0/ */
      3 
      4 "use strict";
      5 
      6 add_task(async function () {
      7  info("Test JSON with slash started.");
      8 
      9  const TEST_JSON_URL = 'data:application/json,{"a/b":[1,2],"a":{"b":[3,4]}}';
     10  await addJsonViewTab(TEST_JSON_URL);
     11 
     12  const countBefore = await getElementCount(
     13    ".jsonPanelBox .treeTable .treeRow"
     14  );
     15  is(countBefore, 7, "There must be seven rows");
     16 });