Automatic update from web-platform-tests Add more URL parser encoding parameter tests In particular for sendBeacon() and the Media Session API. (Inspired by a test from Kagami for the Notifications API where we also fix the spelling per feedback from Kagami.) -- wpt-commits: affe94c734e676a2a137825cc9d99109a278f77d wpt-pr: 59851
17 lines
583 B
HTML
17 lines
583 B
HTML
<!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>
|