<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Add QUnit for unit testing and add a unit test to test BuildbotQueueView._appendPendingRevisionCount."
   href="https://bugs.webkit.org/show_bug.cgi?id=152910#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Add QUnit for unit testing and add a unit test to test BuildbotQueueView._appendPendingRevisionCount."
   href="https://bugs.webkit.org/show_bug.cgi?id=152910">bug 152910</a>
              from <span class="vcard"><a class="email" href="mailto:jmarcell&#64;apple.com" title="Jason Marcell &lt;jmarcell&#64;apple.com&gt;"> <span class="fn">Jason Marcell</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=152910#c4">comment #4</a>)
<span class="quote">&gt; Comment on <span class=""><a href="attachment.cgi?id=268561&amp;action=diff" name="attach_268561" title="Patch">attachment 268561</a> <a href="attachment.cgi?id=268561&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=268561&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=268561&amp;action=review</a>
&gt; 
&gt; &gt; Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js:2
&gt; &gt; +QUnit.test(&quot;BuildBotQueue Test&quot;, function( assert )
&gt; 
&gt; Please remove the space characters inside the parentheses.</span >

Will do.

<span class="quote">&gt; 
&gt; &gt; Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js:5
&gt; &gt; +    assert.ok(trac, &quot;trac is not null&quot;);
&gt; 
&gt; What is the purpose of this test? I mean, this test is not meaningful given
&gt; that trac is guaranteed to be non-null by definition of the new operator.</span >

Will remove.

<span class="quote">&gt; 
&gt; &gt; Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js:11
&gt; &gt; +            name: &quot;Webkit Repo&quot;,
&gt; 
&gt; Nit: Webkit =&gt; WebKit</span >

Will fix.

<span class="quote">&gt; 
&gt; &gt; Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js:15
&gt; &gt; +    assert.ok(queue, &quot;queue is not null&quot;);
&gt; 
&gt; Similarly, this test is not meaningful by the same reason as given in my
&gt; remark for line 5. Moreover, if queue was null then this script would cause
&gt; a JavaScript TypeError when we assign property branches to it on line 8; =&gt;
&gt; we would never execute this line.</span >

Will remove.

<span class="quote">&gt; 
&gt; &gt; Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js:18
&gt; &gt; +    assert.ok(view, &quot;view is not null&quot;);
&gt; 
&gt; Similarly, this is test is not meaningful.</span >

Ditto.

<span class="quote">&gt; 
&gt; &gt; Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js:22
&gt; &gt; +    var revisionsBehind = view.element.getElementsByClassName(&quot;message&quot;)[0].innerHTML.match(/.*(\d+) revision(|s) behind/)[1];
&gt; &gt; +    assert.equal(revisionsBehind, 1, &quot;assert revisions behind&quot;);
&gt; 
&gt; Can you elaborate on how we are one revision behind?</span >

The MockBuildbotQueueView is programmed to return 33020 as the &quot;_latestProductiveIteration&quot; whereas the &quot;latestRecordedRevisionNumber&quot; is 33022 and 33021 is on &quot;someOtherBranch&quot;. Therefore, out of all of the known revision numbers on &quot;trunk&quot;, there is only one revision, 33022, which is later than the &quot;_latestProductiveIteration&quot;.</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>