add-module.tentative.https.sub.html (462B)
1 <!doctype html> 2 <script src="/resources/testharness.js"></script> 3 <script src="/resources/testharnessreport.js"></script> 4 5 <body> 6 <script> 7 'use strict'; 8 9 promise_test(async t => { 10 return promise_rejects_dom(t, "DataError", 11 sharedStorage.worklet.addModule("https://")); 12 }, 'addModule with invalid url'); 13 14 promise_test(() => { 15 return sharedStorage.worklet.addModule( 16 "/shared-storage/resources/simple-module.js"); 17 }, 'addModule'); 18 19 </script> 20 </body>