<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Media Session: add test to ensure that switching media sessions pauses elements"
href="https://bugs.webkit.org/show_bug.cgi?id=147493#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Media Session: add test to ensure that switching media sessions pauses elements"
href="https://bugs.webkit.org/show_bug.cgi?id=147493">bug 147493</a>
from <span class="vcard"><a class="email" href="mailto:mrajca@apple.com" title="Matt Rajca <mrajca@apple.com>"> <span class="fn">Matt Rajca</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=147493#c2">comment #2</a>)
<span class="quote">> Comment on <span class=""><a href="attachment.cgi?id=257933&action=diff" name="attach_257933" title="Patch">attachment 257933</a> <a href="attachment.cgi?id=257933&action=edit" title="Patch">[details]</a></span>
> Patch
>
> View in context:
> <a href="https://bugs.webkit.org/attachment.cgi?id=257933&action=review">https://bugs.webkit.org/attachment.cgi?id=257933&action=review</a>
>
> > LayoutTests/media/session/switching-sessions.html:37
> > + run('video.session = new MediaSession("transient")');
> > +
> > + testExpected('video.paused', true);
> > +
> > + endTest();
>
> It might be good to register a 'pause' event handler and call endTest from
> there.</span >
In the case where a media element is not paused, this will be faster than letting the test time out while waiting for an event to fire. I think I'll keep this.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>