tor-browser

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

icon-url-encoding-euc-kr.tentative.https.html (688B)


      1 <!DOCTYPE html>
      2 <meta charset="euc-kr">
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <script src="/resources/testdriver.js"></script>
      6 <script src="/resources/testdriver-vendor.js"></script>
      7 <script>
      8  // This file is actually ascii, because otherwise text editors would have hard time.
      9 
     10  promise_test(async (t) => {
     11    // "icon" in Korean language
     12    const iconKorean = "\uc544\uc744\ucf58";
     13    const n = new Notification("title", { icon: `?icon=${iconKorean}` })
     14    t.add_cleanup(() => n.close());
     15 
     16    assert_equals(new URL(n.icon).search, "?icon=%EC%95%84%EC%9D%84%EC%BD%98", "icon encoded with utf-8");
     17  })
     18 </script>