share-null-manual.https.html (762B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>WebShare Test: Share null and undefined values</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 // Expect null to be converted into the string 'null'. On the other 15 // hand, undefined should be equivalent to omitting the attribute. 16 setupManualShareTest( 17 {title: 'null', text: '', url: getAbsoluteUrl('null')}); 18 callWhenButtonClicked(() => navigator.share( 19 {title: null, text: undefined, url: null})); 20 </script> 21 </body> 22 </html>