<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - AX: Media controls timeline should have percentage value description"
   href="https://bugs.webkit.org/show_bug.cgi?id=160619#c9">Comment # 9</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - AX: Media controls timeline should have percentage value description"
   href="https://bugs.webkit.org/show_bug.cgi?id=160619">bug 160619</a>
              from <span class="vcard"><a class="email" href="mailto:eric.carlson&#64;apple.com" title="Eric Carlson &lt;eric.carlson&#64;apple.com&gt;"> <span class="fn">Eric Carlson</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=285708&amp;action=diff" name="attach_285708" title="patch">attachment 285708</a> <a href="attachment.cgi?id=285708&amp;action=edit" title="patch">[details]</a></span>
patch

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=285708&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=285708&amp;action=review</a>

<span class="quote">&gt; LayoutTests/ChangeLog:10
&gt; +        * http/tests/media/resources/hls/test-video-duration-accessibility.php: Added.</span >

This file isn't accessibility-specific, how about something like &quot;generate-vod.php&quot;?

<span class="quote">&gt; LayoutTests/http/tests/media/hls/video-duration-accessibility.html:36
&gt; +                // We are not getting the exact same elapsed duration for hour cases, 
&gt; +                // so let's special case this.</span >

What does this mean, is it something we need to fix?

<span class="quote">&gt; LayoutTests/http/tests/media/hls/video-duration-accessibility.html:42
&gt; +                if (elapsedTimer.description.indexOf(&quot;Hour&quot;) !== -1) {
&gt; +                    testExpected(&quot;elapsedTimer.description.indexOf('1 Hour') !== -1 || elapsedTimer.description.indexOf('2 Hours') !== -1&quot;, true);
&gt; +                } else {
&gt; +                    consoleWrite(&quot;elapsedTimer.description: &quot; + elapsedTimer.description);
&gt; +                }
&gt; +                </span >

Nit: WebKit style is to not use braces for single line if statements.

<span class="quote">&gt; LayoutTests/http/tests/media/hls/video-duration-accessibility.html:47
&gt; +                if (seekCount == seekTimes.length) {
&gt; +                    endTest();
&gt; +                } else {
&gt; +                    video.fastSeek(seekTimes[seekCount]);
&gt; +                }</span >

Ditto.

<span class="quote">&gt; LayoutTests/http/tests/media/resources/hls/test-video-duration-accessibility.php:10
&gt; +// header(&quot;Content-Length: &quot; . filesize(__FILE__));</span >

Nit: this isn't necessary.

<span class="quote">&gt; LayoutTests/http/tests/media/resources/hls/test-video-duration-accessibility.php:13
&gt; +$chunkDuration = 6.0272;
&gt; +$chunkCount = 1300;</span >

I would prefer that the duration of the file come from an optional parameter so we can use this for other tests in the future. Something like (untested):

    $chunkCount = 1300;
    if (array_key_exists(&quot;duration&quot;, $_GET))
        $chunkCount = $_GET[&quot;duration&quot;] / $chunkDuration;</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>