RESOLVED FIXED 147091
Media Session: test 'Transient Solo' interruptions
https://bugs.webkit.org/show_bug.cgi?id=147091
Summary Media Session: test 'Transient Solo' interruptions
Matt Rajca
Reported 2015-07-19 11:22:15 PDT
'Transient Solo' interruptions should pause/unpause active media elements.
Attachments
Patch (5.36 KB, patch)
2015-07-19 11:24 PDT, Matt Rajca
eric.carlson: review+
Radar WebKit Bug Importer
Comment 1 2015-07-19 11:22:44 PDT
Matt Rajca
Comment 2 2015-07-19 11:24:47 PDT
Eric Carlson
Comment 3 2015-07-27 09:23:08 PDT
Comment on attachment 257064 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=257064&action=review > LayoutTests/media/session/transient-solo-interruptions.html:14 > + if (window.testRunner) { > + testRunner.dumpAsText(); > + testRunner.waitUntilDone(); > + } Nit: this isn't necessary because you include video-test.js. > LayoutTests/media/session/transient-solo-interruptions.html:16 > + window.jsTestIsAsync = true; Nit: this is unnecessary, it isn't used by the video testing harness. > LayoutTests/media/session/transient-solo-interruptions.html:30 > + document.getElementById("video").play(); Nit: there is only one <video> so you can just use "video" instead of searching for the element. > LayoutTests/media/session/transient-solo-interruptions.html:35 > + document.getElementById("video").onplaying = null; Ditto.
Matt Rajca
Comment 4 2015-07-29 12:53:12 PDT
(In reply to comment #3) > Comment on attachment 257064 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=257064&action=review > > > LayoutTests/media/session/transient-solo-interruptions.html:14 > > + if (window.testRunner) { > > + testRunner.dumpAsText(); > > + testRunner.waitUntilDone(); > > + } > > Nit: this isn't necessary because you include video-test.js. Removed. > > > LayoutTests/media/session/transient-solo-interruptions.html:16 > > + window.jsTestIsAsync = true; > > Nit: this is unnecessary, it isn't used by the video testing harness. Removed. > > > LayoutTests/media/session/transient-solo-interruptions.html:30 > > + document.getElementById("video").play(); > > Nit: there is only one <video> so you can just use "video" instead of > searching for the element. Changed. > > > LayoutTests/media/session/transient-solo-interruptions.html:35 > > + document.getElementById("video").onplaying = null; > > Ditto.
Matt Rajca
Comment 5 2015-07-29 12:56:52 PDT
Note You need to log in before you can comment on or make changes to this bug.