<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: test Play/Pause media control events delivered to Content media sessions"
   href="https://bugs.webkit.org/show_bug.cgi?id=147413#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Media Session: test Play/Pause media control events delivered to Content media sessions"
   href="https://bugs.webkit.org/show_bug.cgi?id=147413">bug 147413</a>
              from <span class="vcard"><a class="email" href="mailto:mrajca&#64;apple.com" title="Matt Rajca &lt;mrajca&#64;apple.com&gt;"> <span class="fn">Matt Rajca</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=147413#c3">comment #3</a>)
<span class="quote">&gt; Comment on <span class=""><a href="attachment.cgi?id=257767&amp;action=diff" name="attach_257767" title="Patch">attachment 257767</a> <a href="attachment.cgi?id=257767&amp;action=edit" title="Patch">[details]</a></span>
&gt; Patch
&gt; 
&gt; View in context:
&gt; <a href="https://bugs.webkit.org/attachment.cgi?id=257767&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=257767&amp;action=review</a>
&gt; 
&gt; &gt; LayoutTests/media/session/play-pause-media-events-in-content-sessions-expected.txt:18
&gt; &gt; +EVENT(canplaythrough)
&gt; &gt; +EXPECTED (internals.mediaSessionCurrentState(session) == 'idle') OK
&gt; &gt; +Idle Media Sessions should not respond to Play/Pause events.
&gt; &gt; +EXPECTED (video.paused == 'true') OK
&gt; &gt; +Sending Play/Pause media event.
&gt; &gt; +RUN(internals.sendMediaControlEvent(&quot;play-pause&quot;))
&gt; &gt; +EXPECTED (video.paused == 'true') OK
&gt; &gt; +Playing media.
&gt; &gt; +Media began playing.
&gt; &gt; +EXPECTED (video.paused == 'false') OK
&gt; &gt; +EXPECTED (internals.mediaSessionCurrentState(session) == 'active') OK
&gt; &gt; +Sending Play/Pause media event.
&gt; &gt; +RUN(internals.sendMediaControlEvent(&quot;play-pause&quot;))
&gt; &gt; +EXPECTED (video.paused == 'true') OK
&gt; &gt; +END OF TEST
&gt; 
&gt; Nit: I think it will be much easier to understand these results if you put a
&gt; blank line between logical tests.</span >

Fixed.

<span class="quote">&gt; 
&gt; &gt; LayoutTests/media/session/play-pause-media-events-in-content-sessions.html:44
&gt; &gt; +        function beganPlaying(event)
&gt; &gt; +        {
&gt; &gt; +            video.onplaying = null;
&gt; &gt; +
&gt; &gt; +            consoleWrite(&quot;Media began playing.&quot;);
&gt; &gt; +            testExpected('video.paused', false);
&gt; 
&gt; Ditto my comments in previous patches about manually adding logging if you
&gt; use &quot;video.on&lt;event type&gt;&quot;.</span >

I switched to `waitForEvent`.</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>