PageSourceSearch

https://testdossier.com/scripts/modules/tj-xref.js?v=2a950a57a350

js testdossier.com collected 2026-10-02 01:47:11 UTC 988 bytes, 30 lines download raw bytes

1// GENERATED from src/modules/xref.ts by scripts/build-modules.mjs — do not edit.
2"use strict";
3(() => {
4  // src/modules/xref.ts
5  function findTabByTicket(key) {
6    const arr = typeof tabs !== "undefined" && Array.isArray(tabs) ? tabs : [];
7    return arr.find((t) => (t.ticket || "").trim().toUpperCase() === key.toUpperCase()) || null;
8  }
9  async function jumpTo(key) {
10    const tab = findTabByTicket(key);
11    if (tab) {
12      let switched = false;
13      if (typeof window.switchToTab === "function") {
14        try {
15          switched = !!await window.switchToTab(tab.id);
16        } catch {
17        }
18      }
19      if (switched && window._saveLastView) window._saveLastView({ kind: "tab" });
20      return;
21    }
22    if (window.tjToast) {
23      window.tjToast.show(
24        `${key} isn't open in tabs. Open it from Snapshots or Test Cases, then the link will work.`,
25        { kind: "info", timeout: 4e3 }
26      );
27    }
28  }
29  window.tjXref = { jumpTo, findTabByTicket };
30})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.