Revert "Bug 1977019 - re-enable hw video decoding testing. r=media-playback-reviewers,jolin" for causing win mda failures on test_hw_video_decoding.html
This reverts commit 158474bdc0cf585b701bc47921f0a7d84f7bb84d.
<!DOCTYPE html><title>DedicatedWorker: import failure</title><scriptsrc="/resources/testharness.js"></script><scriptsrc="/resources/testharnessreport.js"></script><script>setup({allow_uncaught_exception:true});</script><script>promise_test(async()=>{constscriptURL='resources/import-scripts-worker.js';constworker=newWorker(scriptURL,{type:'module'});constmsg_event=awaitnewPromise(resolve=>worker.onmessage=resolve);assert_equals(msg_event.data,'TypeError');},'importScripts() on module worker should throw an exception.');promise_test(()=>{constscriptURL='resources/non-existent-worker.js';constworker=newWorker(scriptURL,{type:'module'});returnnewPromise(resolve=>worker.onerror=resolve);},'Worker construction for non-existent script should dispatch an '+'ErrorEvent.');promise_test(()=>{constscriptURL='resources/static-import-non-existent-script-worker.js';constworker=newWorker(scriptURL,{type:'module'});returnnewPromise(resolve=>worker.onerror=resolve);},'Static import for non-existent script should dispatch an ErrorEvent.');promise_test(async()=>{constscriptURL='./non-existent-worker.js';constworker=newWorker('resources/dynamic-import-given-url-worker.js',{type:'module'});worker.postMessage(scriptURL);constmsg_event=awaitnewPromise((resolve,reject)=>{worker.onmessage=resolve;worker.onerror=error=>{constmsg=errorinstanceofErrorEvent?error.message:'unknown error';reject(msg);};});assert_equals(msg_event.data,'TypeError');},'Dynamic import for non-existent script should throw an exception.');test(()=>{constscriptURL='http://invalid:123$';assert_throws_dom('SyntaxError',()=>newWorker(scriptURL,{type:'module'}));},'Worker construction for an invalid URL should throw an exception.');async_test((t)=>{constscriptURL='file:///static-import-worker.js';constworker=newWorker(scriptURL,{type:'module'});worker.onerror=t.step_func_done(function(e){assert_true(einstanceofEvent);});},'Worker construction for a file URL should fail');</script>