Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

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