blob: f0daae820b85c4af24523199ef4cb3b5b87016f7 [file] [edit]
<!DOCTYPE html>
<meta charset="euc-kr">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.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\uc774\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%B4%EC%BD%98", "icon encoded with utf-8");
})
</script>