Better support for testing from engines

guest271314 guest271314 at gmail.com
Tue Jul 2 08:01:36 UTC 2019


>  Is there a way to mock imported (`computeGraph`) function from within
the test?

If gather the requirement correctly you can substitute utilizing
`console.assert()` shipped with the browser for a third-party library.

> About video try reloading the page and doing `video.play()`, it will
reject, as the event is not trusted.

Not sure what the code or test is for playing `<video>` in a module or what
lead to the `Promise` rejection described when the `document` is reloaded?
Have run this code https://plnkr.co/edit/5bvp9xv0ciMYfVzG?p=preview (which
plays `<video>` in a JavaScript module) several times sequentially using
`autoplay` without a `Promise` rejection occurring.

On Tue, Jul 2, 2019 at 7:46 AM Adam Eisenreich <akxe at seznam.cz> wrote:

> About video try reloading the page and doing `video.play()`, it will
> reject, as the event is not trusted.
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20190702/39579122/attachment.html>


More information about the es-discuss mailing list