share-unicode-strings-manual.https.html (1001B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>WebShare Test: Share with non-ASCII Unicode strings</title> 6 <script src="/resources/testharness.js"></script> 7 <script src="/resources/testharnessreport.js"></script> 8 <script src="resources/manual-helper.js"></script> 9 </head> 10 <body> 11 <script> 12 setup({explicit_timeout: true}); 13 14 // Title is a string with BMP and non-BMP characters. 15 // Text contains invalid surrogates which should be converted into U+FFFD. 16 // URL contains non-ASCII characters in host and path. 17 const title = 'fáncy 写作 😱'; 18 const url = 'https://测试.example.com/📄'; 19 // Host is IDNA-encoded. Path is percent-encoded. 20 const url_ascii = 'https://xn--0zwm56d.example.com/%F0%9F%93%84'; 21 setupManualShareTest({title, text: '\ufffdx', url: url_ascii}); 22 callWhenButtonClicked(() => navigator.share({title, text: '\ud9a3x', url})); 23 </script> 24 </body> 25 </html>