shared-storage-writable-img-content-attribute.tentative.https.sub.html (1136B)
1 <!doctype html> 2 <body> 3 <script src=/resources/testharness.js></script> 4 <script src=/resources/testharnessreport.js></script> 5 <script src=/common/utils.js></script> 6 <script src=/fenced-frame/resources/utils.js></script> 7 <script src=/shared-storage/resources/util.js></script> 8 <img src="/shared-storage/resources/shared-storage-writable-pixel.png?key=hello&value=world" sharedstoragewritable></img> 9 <img src="/shared-storage/resources/shared-storage-writable-pixel.png?key=wont&value=set"></img> 10 <img src="/shared-storage/resources/shared-storage-writable-pixel.png?key=goodnight&value=moon" sharedstoragewritable></img> 11 <script> 12 const sameOrigin = new URL("", location.href).origin; 13 14 promise_test(async t => { 15 await verifyKeyValueForOrigin('hello', 'world', sameOrigin); 16 await verifyKeyNotFoundForOrigin('wont', sameOrigin); 17 await verifyKeyValueForOrigin('goodnight', 'moon', sameOrigin); 18 await deleteKeyForOrigin('hello', sameOrigin); 19 await deleteKeyForOrigin('goodnight', sameOrigin); 20 }, 'test <img sharedstoragewritable src=[url]> for same origin img'); 21 </script> 22 </body>