`console.assert(Array.isArray(input) && input[0] === 1 && input[1] === 'a' && input[2] === 'A', {input})` should be equivalent to the third-party code example.
> About video, any video without sound can be played at any time, yet if it has sound, it is considered disruptive and thus should be blocked, > unless the play is resulted via user action. This also apply for audio, webSpeech API, and few I may have forgotten. Autoplay can be configured (enabled or disabled) at the browser preferences/settings and policy. If necessary a user gesture can be set to dispatch an event where the audio is played. How is the default autoplay preference/setting or policy of the browser currently affecting testing and this proposal? On Tue, Jul 2, 2019 at 8:39 AM Adam Eisenreich <a...@seznam.cz> wrote: > > If gather the requirement correctly you can substitute utilizing > `console.assert()` shipped with the browser for a third-party library. > Yet MDN says: > > Writes an error message to the console if the assertion is false. If the > assertion is true, nothing happens. > > I am not sure, but `console.assert` seems only to do similar thing to > `expect(a).toBe(b)` > > About video, any video without sound can be played at any time, yet if it > has sound, it is considered disruptive and thus should be blocked, unless > the play is resulted via user action. This also apply for audio, webSpeech > API, and few I may have forgotten. > _______________________________________________ > es-discuss mailing list > es-discuss@mozilla.org > https://mail.mozilla.org/listinfo/es-discuss >
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss