草庐IT

importsScripts

全部标签

javascript - 在 karma 环境中的 Blob 中使用 importsScripts

我正在使用karma和jasmine进行我的一个小项目。我的目标浏览器是chrome32。我正在尝试在我通过blob实例化的webworker中导入脚本,如下所示:describeAsyncAppliPersephone("WhentheapplicationprojecttoDOM",function(){it("itshouldcallthefunctionofDomProjectionintheprojectassociatedwithitsevent",function(){vareventSentBack={eventType:'testReceived',headers:{