tor-browser

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

urlpattern-constructor.html (529B)


      1 <!DOCTYPE html>
      2 <script src="/resources/testharness.js"></script>
      3 <script src="/resources/testharnessreport.js"></script>
      4 <script>
      5 test(() => {
      6  assert_throws_js(TypeError, () => { new URLPattern(new URL('https://example.org/%(')); } );
      7  assert_throws_js(TypeError, () => { new URLPattern(new URL('https://example.org/%((')); } );
      8  assert_throws_js(TypeError, () => { new URLPattern('(\\'); } );
      9 }, `Test unclosed token`);
     10 
     11 test(() => {
     12  new URLPattern(undefined, undefined);
     13 }, `Test constructor with undefined`);
     14 </script>