tor-browser

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

dangling-markup-helper.js (381B)


      1 // These are used in tests that rely on URLs containing dangling markup. See
      2 // https://github.com/whatwg/fetch/pull/519.
      3 const kDanglingMarkupSubstrings = [
      4  "blo\nck<ed",
      5  "blo\rck<ed",
      6  "blo\tck<ed",
      7  "blo<ck\ned",
      8  "blo<ck\red",
      9  "blo<ck\ted",
     10 ];
     11 
     12 function getTimeoutPromise(t) {
     13  return new Promise(resolve =>
     14      t.step_timeout(() => resolve("NOT LOADED"), 1500));
     15 }