<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[199180] trunk/Tools</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/199180">199180</a></dd>
<dt>Author</dt> <dd>jmarcell@apple.com</dd>
<dt>Date</dt> <dd>2016-04-07 14:08:40 -0700 (Thu, 07 Apr 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>Adding layout tests for the bot watcher's dashboard QUnit tests. https://bugs.webkit.org/show_bug.cgi?id=155272

Reviewed by Daniel Bates.

Moved supporting resources into a resources folder and updated index.html accordingly
to point to the new locations. Added code to tests.js to dumpAsText when QUnit is done.

* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/index-expected.txt: Added.
* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/index.html: Updated to point to tests.js and Mock files in resources directory.
* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/MockBuildbotQueue.js: Renamed from
Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockBuildbotQueue.js.
(MockBuildbotQueue):
* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/MockBuildbotQueueView.js: Renamed from
Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockBuildbotQueueView.js.
(MockBuildbotQueueView):
(MockBuildbotQueueView.prototype._latestProductiveIteration):
* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/MockTrac.js: Renamed from
Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockTrac.js.
(MockTrac):
(MockTrac.prototype.get oldestRecordedRevisionNumber):
(MockTrac.prototype.get latestRecordedRevisionNumber):
(MockTrac.prototype.loadMoreHistoricalData):
* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/test-fixture-git-trac-rss.xml: Renamed from
Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/test-fixture-git-trac-rss.xml.
* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/test-fixture-trac-rss.xml: Renamed from
Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/test-fixture-trac-rss.xml.
* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/tests.js: Renamed from
Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js.
Updated the unit tests for Trac._loaded() to point to the XML files that are now located in the 'resources' directory.
(QUnit.done): Added. Removes machine-specific output from test results and calls testRunner.notifyDone to let the layout test harness know that all testing is done.
* Scripts/run-dashboard-tests: Added.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptstestsindexhtml">trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/index.html</a></li>
<li><a href="#trunkToolsChangeLog">trunk/Tools/ChangeLog</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptstestsindexexpectedtxt">trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/index-expected.txt</a></li>
<li>trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/</li>
<li><a href="#trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptstestsresourcesMockBuildbotQueuejs">trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/MockBuildbotQueue.js</a></li>
<li><a href="#trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptstestsresourcesMockBuildbotQueueViewjs">trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/MockBuildbotQueueView.js</a></li>
<li><a href="#trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptstestsresourcesMockTracjs">trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/MockTrac.js</a></li>
<li><a href="#trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptstestsresourcestestfixturegittracrssxml">trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/test-fixture-git-trac-rss.xml</a></li>
<li><a href="#trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptstestsresourcestestfixturetracrssxml">trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/test-fixture-trac-rss.xml</a></li>
<li><a href="#trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptstestsresourcestestsjs">trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/tests.js</a></li>
<li><a href="#trunkToolsScriptsrundashboardtests">trunk/Tools/Scripts/run-dashboard-tests</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptstestsMockBuildbotQueuejs">trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockBuildbotQueue.js</a></li>
<li><a href="#trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptstestsMockBuildbotQueueViewjs">trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockBuildbotQueueView.js</a></li>
<li><a href="#trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptstestsMockTracjs">trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockTrac.js</a></li>
<li><a href="#trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptsteststestfixturegittracrssxml">trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/test-fixture-git-trac-rss.xml</a></li>
<li><a href="#trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptsteststestfixturetracrssxml">trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/test-fixture-trac-rss.xml</a></li>
<li><a href="#trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptsteststestsjs">trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptstestsMockBuildbotQueuejs"></a>
<div class="delfile"><h4>Deleted: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockBuildbotQueue.js (199179 => 199180)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockBuildbotQueue.js        2016-04-07 21:01:42 UTC (rev 199179)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockBuildbotQueue.js        2016-04-07 21:08:40 UTC (rev 199180)
</span><span class="lines">@@ -1,50 +0,0 @@
</span><del>-/*
- * Copyright (C) 2016 Apple, Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-MockBuildbotQueue = function()
-{
-    info = {
-        branches: &quot;&quot;,
-        platform: &quot;&quot;,
-        debug: &quot;&quot;,
-        builder: &quot;&quot;,
-        tester: &quot;&quot;,
-        performance: &quot;&quot;,
-        staticAnalyzer: &quot;&quot;,
-        leaks: &quot;&quot;,
-        architecture: &quot;&quot;,
-        testCategory: &quot;&quot;,
-        heading: &quot;&quot;,
-        crashesOnly: &quot;&quot;
-    };
-    BuildbotQueue.call(this, &quot;Mock BuildBot&quot;, &quot;id&quot;, info);
-};
-
-BaseObject.addConstructorFunctions(MockBuildbotQueue);
-
-MockBuildbotQueue.prototype = {
-    constructor: MockBuildbotQueue,
-    __proto__: BuildbotQueue.prototype
-}
</del></span></pre></div>
<a id="trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptstestsMockBuildbotQueueViewjs"></a>
<div class="delfile"><h4>Deleted: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockBuildbotQueueView.js (199179 => 199180)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockBuildbotQueueView.js        2016-04-07 21:01:42 UTC (rev 199179)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockBuildbotQueueView.js        2016-04-07 21:08:40 UTC (rev 199180)
</span><span class="lines">@@ -1,51 +0,0 @@
</span><del>-/*
- * Copyright (C) 2016 Apple, Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-MockBuildbotQueueView = function(queues)
-{
-    this.element = document.createElement(&quot;div&quot;);
-    this.element.classList.add(&quot;queue-view&quot;);
-    this.element.__queueView = this;
-
-    this.queues = queues || [];
-
-    BaseObject.call(this);
-};
-
-BaseObject.addConstructorFunctions(MockBuildbotQueueView);
-
-MockBuildbotQueueView.prototype = {
-    constructor: MockBuildbotQueueView,
-    __proto__: BuildbotQueueView.prototype,
-
-    _latestProductiveIteration: function(queue)
-    {
-        return {
-            revision: {
-                &quot;openSource&quot;: &quot;33020&quot;
-            }
-        };
-    }
-};
</del></span></pre></div>
<a id="trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptstestsMockTracjs"></a>
<div class="delfile"><h4>Deleted: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockTrac.js (199179 => 199180)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockTrac.js        2016-04-07 21:01:42 UTC (rev 199179)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockTrac.js        2016-04-07 21:08:40 UTC (rev 199180)
</span><span class="lines">@@ -1,103 +0,0 @@
</span><del>-/*
- * Copyright (C) 2016 Apple, Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-MockTrac = function()
-{
-    Trac.call(this, &quot;https://trac.webkit.org/&quot;);
-};
-
-BaseObject.addConstructorFunctions(MockTrac);
-
-MockTrac.prototype = {
-    constructor: MockTrac,
-    __proto__: Trac.prototype,
-
-    get oldestRecordedRevisionNumber()
-    {
-        return &quot;33018&quot;;
-    },
-
-    get latestRecordedRevisionNumber()
-    {
-        return &quot;33022&quot;;
-    },
-
-    loadMoreHistoricalData: function()
-    {
-    },
-};
-
-MockTrac.EXAMPLE_TRAC_COMMITS = [
-    {
-        &quot;revisionNumber&quot;: &quot;33018&quot;,
-        &quot;link&quot;: &quot;https://trac.webkit.org/changeset/33018&quot;,
-        &quot;title&quot;: { innerHTML: &quot;commit message&quot; },
-        &quot;author&quot;: &quot;john@webkit.org&quot;,
-        &quot;date&quot;: new Date(&quot;2015-11-15T17:05:44.000Z&quot;),
-        &quot;description&quot;: &quot;description&quot;,
-        &quot;containsBranchLocation&quot;: true,
-        &quot;branches&quot;: [&quot;trunk&quot;]
-    },
-    {
-        &quot;revisionNumber&quot;: &quot;33019&quot;,
-        &quot;link&quot;: &quot;https://trac.webkit.org/changeset/33019&quot;,
-        &quot;title&quot;: { innerHTML: &quot;commit message&quot; },
-        &quot;author&quot;: &quot;paul@webkit.org&quot;,
-        &quot;date&quot;: new Date(&quot;2015-11-16T01:18:23.000Z&quot;),
-        &quot;description&quot;: &quot;description&quot;,
-        &quot;containsBranchLocation&quot;: true,
-        &quot;branches&quot;: [&quot;someOtherBranch&quot;]
-    },
-    {
-        &quot;revisionNumber&quot;: &quot;33020&quot;,
-        &quot;link&quot;: &quot;https://trac.webkit.org/changeset/33020&quot;,
-        &quot;title&quot;: { innerHTML: &quot;commit message&quot; },
-        &quot;author&quot;: &quot;george@webkit.org&quot;,
-        &quot;date&quot;: new Date(&quot;2015-11-16T01:19:27.000Z&quot;),
-        &quot;description&quot;: &quot;description&quot;,
-        &quot;containsBranchLocation&quot;: true,
-        &quot;branches&quot;: [&quot;trunk&quot;]
-    },
-    {
-        &quot;revisionNumber&quot;: &quot;33021&quot;,
-        &quot;link&quot;: &quot;https://trac.webkit.org/changeset/33021&quot;,
-        &quot;title&quot;: { innerHTML: &quot;commit message&quot; },
-        &quot;author&quot;: &quot;ringo@webkit.org&quot;,
-        &quot;date&quot;: new Date(&quot;2015-11-16T01:20:58.000Z&quot;),
-        &quot;description&quot;: &quot;description&quot;,
-        &quot;containsBranchLocation&quot;: true,
-        &quot;branches&quot;: [&quot;someOtherBranch&quot;]
-    },
-    {
-        &quot;revisionNumber&quot;: &quot;33022&quot;,
-        &quot;link&quot;: &quot;https://trac.webkit.org/changeset/33022&quot;,
-        &quot;title&quot;: { innerHTML: &quot;commit message&quot; },
-        &quot;author&quot;: &quot;bob@webkit.org&quot;,
-        &quot;date&quot;: new Date(&quot;2015-11-16T01:22:01.000Z&quot;),
-        &quot;description&quot;: &quot;description&quot;,
-        &quot;containsBranchLocation&quot;: true,
-        &quot;branches&quot;: [&quot;trunk&quot;]
-    }
-];
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptstestsindexexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/index-expected.txt (0 => 199180)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/index-expected.txt                                (rev 0)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/index-expected.txt        2016-04-07 21:08:40 UTC (rev 199180)
</span><span class="lines">@@ -0,0 +1,34 @@
</span><ins>+WebKit Bot Watcher's Dashboard QUnit Test Runner noglobalsnotrycatch
+Hide passed tests
+Trac: _loaded (0, 8, 8)Rerun
+Trac: parse gitBranches (0, 7, 7)Rerun
+Trac: _parseRevisionFromURL (0, 3, 3)Rerun
+Trac: nextRevision (0, 2, 2)Rerun
+Trac: indexOfRevision (0, 1, 1)Rerun
+Trac: commitsOnBranchLaterThanRevision (0, 1, 1)Rerun
+Trac: commitsOnBranchLaterThanRevision no commits (0, 1, 1)Rerun
+Trac: commitsOnBranchInRevisionRange (0, 1, 1)Rerun
+BuildBotQueueView: _appendPendingRevisionCount (0, 1, 1)Rerun
+BuildBotQueueView: _popoverLinesForCommitRange (0, 1, 1)Rerun
+BuildBotQueueView: _presentPopoverForPendingCommits (0, 1, 1)Rerun
+BuildBotQueueView: _presentPopoverForPendingCommits no pending commits (0, 1, 1)Rerun
+BuildBotQueueView: _presentPopoverForRevisionRange (0, 1, 1)Rerun
+BuildBotQueueView: _presentPopoverForRevisionRange no commits (0, 1, 1)Rerun
+BuildBotQueueView: _revisionContentWithPopoverForIteration (0, 3, 3)Rerun
+BuildBotQueueView: _revisionContentWithPopoverForIteration has previousIteration (0, 4, 4)Rerun
+BuildBotQueueView: _formatRevisionForDisplay Subversion (0, 1, 1)Rerun
+BuildBotQueueView: _formatRevisionForDisplay Git (0, 1, 1)Rerun
+BuildBotQueue: compareIterations by revisions (0, 3, 3)Rerun
+BuildBotQueue: compareIterations by loaded (one revision missing) (0, 2, 2)Rerun
+BuildBotQueue: compareIterations by loaded (same revision) (0, 2, 2)Rerun
+BuildBotQueue: compareIterations by id (revisions not specified) (0, 3, 3)Rerun
+BuildBotQueue: compareIterations by id (same revision) (0, 3, 3)Rerun
+BuildBotQueue: compareIterationsByRevisions (0, 3, 3)Rerun
+r33022bob@webkit.orgcommit message
+commits since previous result
+r33020george@webkit.orgcommit message
+r33018john@webkit.orgcommit message
+no commits to trunk since previous result
+commits since previous result
+r33022bob@webkit.orgcommit message
+r33020george@webkit.orgcommit message
</ins></span></pre></div>
<a id="trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptstestsindexhtml"></a>
<div class="modfile"><h4>Modified: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/index.html (199179 => 199180)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/index.html        2016-04-07 21:01:42 UTC (rev 199179)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/index.html        2016-04-07 21:08:40 UTC (rev 199180)
</span><span class="lines">@@ -62,10 +62,10 @@
</span><span class="cx">     &lt;script src=&quot;../Settings.js&quot;&gt;&lt;/script&gt;
</span><span class="cx">     &lt;script src=&quot;../Trac.js&quot;&gt;&lt;/script&gt;
</span><span class="cx">     &lt;script src=&quot;../../../../../../../Source/ThirdParty/qunit/qunit/qunit.js&quot;&gt;&lt;/script&gt;
</span><del>-    &lt;script src=&quot;MockTrac.js&quot;&gt;&lt;/script&gt;
-    &lt;script src=&quot;MockBuildbotQueue.js&quot;&gt;&lt;/script&gt;
-    &lt;script src=&quot;MockBuildbotQueueView.js&quot;&gt;&lt;/script&gt;
-    &lt;script src=&quot;tests.js&quot;&gt;&lt;/script&gt;
</del><ins>+    &lt;script src=&quot;resources/MockTrac.js&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;resources/MockBuildbotQueue.js&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;resources/MockBuildbotQueueView.js&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;resources/tests.js&quot;&gt;&lt;/script&gt;
</ins><span class="cx"> 
</span><span class="cx"> &lt;/head&gt;
</span><span class="cx"> &lt;body&gt;
</span></span></pre></div>
<a id="trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptstestsresourcesMockBuildbotQueuejsfromrev199179trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptstestsMockBuildbotQueuejs"></a>
<div class="copfile"><h4>Copied: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/MockBuildbotQueue.js (from rev 199179, trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockBuildbotQueue.js) (0 => 199180)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/MockBuildbotQueue.js                                (rev 0)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/MockBuildbotQueue.js        2016-04-07 21:08:40 UTC (rev 199180)
</span><span class="lines">@@ -0,0 +1,50 @@
</span><ins>+/*
+ * Copyright (C) 2016 Apple, Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+MockBuildbotQueue = function()
+{
+    info = {
+        branches: &quot;&quot;,
+        platform: &quot;&quot;,
+        debug: &quot;&quot;,
+        builder: &quot;&quot;,
+        tester: &quot;&quot;,
+        performance: &quot;&quot;,
+        staticAnalyzer: &quot;&quot;,
+        leaks: &quot;&quot;,
+        architecture: &quot;&quot;,
+        testCategory: &quot;&quot;,
+        heading: &quot;&quot;,
+        crashesOnly: &quot;&quot;
+    };
+    BuildbotQueue.call(this, &quot;Mock BuildBot&quot;, &quot;id&quot;, info);
+};
+
+BaseObject.addConstructorFunctions(MockBuildbotQueue);
+
+MockBuildbotQueue.prototype = {
+    constructor: MockBuildbotQueue,
+    __proto__: BuildbotQueue.prototype
+}
</ins></span></pre></div>
<a id="trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptstestsresourcesMockBuildbotQueueViewjsfromrev199179trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptstestsMockBuildbotQueueViewjs"></a>
<div class="copfile"><h4>Copied: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/MockBuildbotQueueView.js (from rev 199179, trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockBuildbotQueueView.js) (0 => 199180)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/MockBuildbotQueueView.js                                (rev 0)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/MockBuildbotQueueView.js        2016-04-07 21:08:40 UTC (rev 199180)
</span><span class="lines">@@ -0,0 +1,51 @@
</span><ins>+/*
+ * Copyright (C) 2016 Apple, Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+MockBuildbotQueueView = function(queues)
+{
+    this.element = document.createElement(&quot;div&quot;);
+    this.element.classList.add(&quot;queue-view&quot;);
+    this.element.__queueView = this;
+
+    this.queues = queues || [];
+
+    BaseObject.call(this);
+};
+
+BaseObject.addConstructorFunctions(MockBuildbotQueueView);
+
+MockBuildbotQueueView.prototype = {
+    constructor: MockBuildbotQueueView,
+    __proto__: BuildbotQueueView.prototype,
+
+    _latestProductiveIteration: function(queue)
+    {
+        return {
+            revision: {
+                &quot;openSource&quot;: &quot;33020&quot;
+            }
+        };
+    }
+};
</ins></span></pre></div>
<a id="trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptstestsresourcesMockTracjsfromrev199179trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptstestsMockTracjs"></a>
<div class="copfile"><h4>Copied: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/MockTrac.js (from rev 199179, trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockTrac.js) (0 => 199180)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/MockTrac.js                                (rev 0)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/MockTrac.js        2016-04-07 21:08:40 UTC (rev 199180)
</span><span class="lines">@@ -0,0 +1,103 @@
</span><ins>+/*
+ * Copyright (C) 2016 Apple, Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+MockTrac = function()
+{
+    Trac.call(this, &quot;https://trac.webkit.org/&quot;);
+};
+
+BaseObject.addConstructorFunctions(MockTrac);
+
+MockTrac.prototype = {
+    constructor: MockTrac,
+    __proto__: Trac.prototype,
+
+    get oldestRecordedRevisionNumber()
+    {
+        return &quot;33018&quot;;
+    },
+
+    get latestRecordedRevisionNumber()
+    {
+        return &quot;33022&quot;;
+    },
+
+    loadMoreHistoricalData: function()
+    {
+    },
+};
+
+MockTrac.EXAMPLE_TRAC_COMMITS = [
+    {
+        &quot;revisionNumber&quot;: &quot;33018&quot;,
+        &quot;link&quot;: &quot;https://trac.webkit.org/changeset/33018&quot;,
+        &quot;title&quot;: { innerHTML: &quot;commit message&quot; },
+        &quot;author&quot;: &quot;john@webkit.org&quot;,
+        &quot;date&quot;: new Date(&quot;2015-11-15T17:05:44.000Z&quot;),
+        &quot;description&quot;: &quot;description&quot;,
+        &quot;containsBranchLocation&quot;: true,
+        &quot;branches&quot;: [&quot;trunk&quot;]
+    },
+    {
+        &quot;revisionNumber&quot;: &quot;33019&quot;,
+        &quot;link&quot;: &quot;https://trac.webkit.org/changeset/33019&quot;,
+        &quot;title&quot;: { innerHTML: &quot;commit message&quot; },
+        &quot;author&quot;: &quot;paul@webkit.org&quot;,
+        &quot;date&quot;: new Date(&quot;2015-11-16T01:18:23.000Z&quot;),
+        &quot;description&quot;: &quot;description&quot;,
+        &quot;containsBranchLocation&quot;: true,
+        &quot;branches&quot;: [&quot;someOtherBranch&quot;]
+    },
+    {
+        &quot;revisionNumber&quot;: &quot;33020&quot;,
+        &quot;link&quot;: &quot;https://trac.webkit.org/changeset/33020&quot;,
+        &quot;title&quot;: { innerHTML: &quot;commit message&quot; },
+        &quot;author&quot;: &quot;george@webkit.org&quot;,
+        &quot;date&quot;: new Date(&quot;2015-11-16T01:19:27.000Z&quot;),
+        &quot;description&quot;: &quot;description&quot;,
+        &quot;containsBranchLocation&quot;: true,
+        &quot;branches&quot;: [&quot;trunk&quot;]
+    },
+    {
+        &quot;revisionNumber&quot;: &quot;33021&quot;,
+        &quot;link&quot;: &quot;https://trac.webkit.org/changeset/33021&quot;,
+        &quot;title&quot;: { innerHTML: &quot;commit message&quot; },
+        &quot;author&quot;: &quot;ringo@webkit.org&quot;,
+        &quot;date&quot;: new Date(&quot;2015-11-16T01:20:58.000Z&quot;),
+        &quot;description&quot;: &quot;description&quot;,
+        &quot;containsBranchLocation&quot;: true,
+        &quot;branches&quot;: [&quot;someOtherBranch&quot;]
+    },
+    {
+        &quot;revisionNumber&quot;: &quot;33022&quot;,
+        &quot;link&quot;: &quot;https://trac.webkit.org/changeset/33022&quot;,
+        &quot;title&quot;: { innerHTML: &quot;commit message&quot; },
+        &quot;author&quot;: &quot;bob@webkit.org&quot;,
+        &quot;date&quot;: new Date(&quot;2015-11-16T01:22:01.000Z&quot;),
+        &quot;description&quot;: &quot;description&quot;,
+        &quot;containsBranchLocation&quot;: true,
+        &quot;branches&quot;: [&quot;trunk&quot;]
+    }
+];
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptstestsresourcestestfixturegittracrssxmlfromrev199179trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptsteststestfixturegittracrssxml"></a>
<div class="copfile"><h4>Copied: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/test-fixture-git-trac-rss.xml (from rev 199179, trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/test-fixture-git-trac-rss.xml) (0 => 199180)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/test-fixture-git-trac-rss.xml                                (rev 0)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/test-fixture-git-trac-rss.xml        2016-04-07 21:08:40 UTC (rev 199180)
</span><span class="lines">@@ -0,0 +1,75 @@
</span><ins>+&lt;?xml version=&quot;1.0&quot;?&gt;
+&lt;!--
+Copyright (C) 2016 Apple, Inc. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+1. Redistributions of source code must retain the above copyright
+   notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+   notice, this list of conditions and the following disclaimer in the
+   documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+THE POSSIBILITY OF SUCH DAMAGE.
+--&gt;
+
+&lt;rss xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; version=&quot;2.0&quot;&gt;
+  &lt;channel&gt;
+    &lt;title&gt;WebKit&lt;/title&gt;
+    &lt;link&gt;https://trac.webkit.org/timeline&lt;/link&gt;
+    &lt;description&gt;Trac Timeline&lt;/description&gt;
+    &lt;language&gt;en-US&lt;/language&gt;
+    &lt;generator&gt;Trac 0.12.3&lt;/generator&gt;
+    &lt;image&gt;
+      &lt;title&gt;WebKit&lt;/title&gt;
+      &lt;url&gt;https://trac.webkit.org/chrome/site/favicon.png&lt;/url&gt;
+      &lt;link&gt;https://trac.webkit.org/timeline&lt;/link&gt;
+    &lt;/image&gt;
+    &lt;item&gt;
+      &lt;title&gt;Changeset [33025]: Ita prorsus inquam Ad corpus diceres pertinere, sed ea, quae dixi&lt;/title&gt;
+      &lt;branches&gt;master, someOtherBranch&lt;/branches&gt;
+
+        &lt;author&gt;george@webkit.org&lt;/author&gt;
+
+      &lt;pubDate&gt;Tue, 26 Jan 2016 22:48:15 GMT&lt;/pubDate&gt;
+      &lt;link&gt;https://trac.webkit.org/changeset/33025&lt;/link&gt;
+      &lt;guid isPermaLink=&quot;false&quot;&gt;https://trac.webkit.org/changeset/33025/1453848495332569&lt;/guid&gt;
+      &lt;description&gt;Description&lt;/description&gt;
+      &lt;category&gt;changeset&lt;/category&gt;
+    &lt;/item&gt;
+    &lt;item&gt;
+      &lt;title&gt;Changeset [33024]: An eum discere ea mavis, quae cum plane perdidiceriti nihil sciat&lt;/title&gt;
+      &lt;branches&gt;master&lt;/branches&gt;
+
+        &lt;author&gt;paul@webkit.org&lt;/author&gt;
+
+      &lt;pubDate&gt;Tue, 26 Jan 2016 22:22:25 GMT&lt;/pubDate&gt;
+      &lt;link&gt;https://trac.webkit.org/changeset/33024&lt;/link&gt;
+      &lt;guid isPermaLink=&quot;false&quot;&gt;https://trac.webkit.org/changeset/33024/1453846945244007&lt;/guid&gt;
+      &lt;description&gt;Description&lt;/description&gt;
+      &lt;category&gt;changeset&lt;/category&gt;
+    &lt;/item&gt;
+    &lt;item&gt;
+      &lt;title&gt;Changeset [33023]: Lorem ipsum dolor sit amet, consectetur adipiscing elit.&lt;/title&gt;
+
+        &lt;author&gt;john@webkit.org&lt;/author&gt;
+
+      &lt;pubDate&gt;Tue, 26 Jan 2016 22:22:14 GMT&lt;/pubDate&gt;
+      &lt;link&gt;https://trac.webkit.org/changeset/33023&lt;/link&gt;
+      &lt;guid isPermaLink=&quot;false&quot;&gt;https://trac.webkit.org/changeset/33023/1453846934034550&lt;/guid&gt;
+      &lt;description&gt;Description&lt;/description&gt;
+      &lt;category&gt;changeset&lt;/category&gt;
+    &lt;/item&gt;
+   &lt;/channel&gt;
+&lt;/rss&gt;
</ins></span></pre></div>
<a id="trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptstestsresourcestestfixturetracrssxmlfromrev199179trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptsteststestfixturetracrssxml"></a>
<div class="copfile"><h4>Copied: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/test-fixture-trac-rss.xml (from rev 199179, trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/test-fixture-trac-rss.xml) (0 => 199180)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/test-fixture-trac-rss.xml                                (rev 0)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/test-fixture-trac-rss.xml        2016-04-07 21:08:40 UTC (rev 199180)
</span><span class="lines">@@ -0,0 +1,71 @@
</span><ins>+&lt;?xml version=&quot;1.0&quot;?&gt;
+&lt;!--
+Copyright (C) 2016 Apple, Inc. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+1. Redistributions of source code must retain the above copyright
+   notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+   notice, this list of conditions and the following disclaimer in the
+   documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+THE POSSIBILITY OF SUCH DAMAGE.
+--&gt;
+
+&lt;rss xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; version=&quot;2.0&quot;&gt;
+  &lt;channel&gt;
+    &lt;title&gt;WebKit&lt;/title&gt;
+    &lt;link&gt;https://trac.webkit.org/timeline&lt;/link&gt;
+    &lt;description&gt;Trac Timeline&lt;/description&gt;
+    &lt;language&gt;en-US&lt;/language&gt;
+    &lt;generator&gt;Trac 0.12.3&lt;/generator&gt;
+    &lt;image&gt;
+      &lt;title&gt;WebKit&lt;/title&gt;
+      &lt;url&gt;https://trac.webkit.org/chrome/site/favicon.png&lt;/url&gt;
+      &lt;link&gt;https://trac.webkit.org/timeline&lt;/link&gt;
+    &lt;/image&gt;
+    &lt;item&gt;
+      &lt;title&gt;Changeset [33025]: Ita prorsus inquam Ad corpus diceres pertinere, sed ea, quae dixi&lt;/title&gt;
+      
+        &lt;author&gt;george@webkit.org&lt;/author&gt;
+
+      &lt;pubDate&gt;Tue, 26 Jan 2016 22:48:15 GMT&lt;/pubDate&gt;
+      &lt;link&gt;https://trac.webkit.org/changeset/33025&lt;/link&gt;
+      &lt;guid isPermaLink=&quot;false&quot;&gt;https://trac.webkit.org/changeset/33025/1453848495332569&lt;/guid&gt;
+      &lt;description&gt;Description&lt;/description&gt;
+      &lt;category&gt;changeset&lt;/category&gt;
+    &lt;/item&gt;&lt;item&gt;
+      &lt;title&gt;Changeset [33024]: An eum discere ea mavis, quae cum plane perdidiceriti nihil sciat&lt;/title&gt;
+      
+        &lt;author&gt;paul@webkit.org&lt;/author&gt;
+
+      &lt;pubDate&gt;Tue, 26 Jan 2016 22:22:25 GMT&lt;/pubDate&gt;
+      &lt;link&gt;https://trac.webkit.org/changeset/33024&lt;/link&gt;
+      &lt;guid isPermaLink=&quot;false&quot;&gt;https://trac.webkit.org/changeset/33024/1453846945244007&lt;/guid&gt;
+      &lt;description&gt;Description&lt;/description&gt;
+      &lt;category&gt;changeset&lt;/category&gt;
+    &lt;/item&gt;&lt;item&gt;
+      &lt;title&gt;Changeset [33023]: Lorem ipsum dolor sit amet, consectetur adipiscing elit.&lt;/title&gt;
+      
+        &lt;author&gt;john@webkit.org&lt;/author&gt;
+
+      &lt;pubDate&gt;Tue, 26 Jan 2016 22:22:14 GMT&lt;/pubDate&gt;
+      &lt;link&gt;https://trac.webkit.org/changeset/33023&lt;/link&gt;
+      &lt;guid isPermaLink=&quot;false&quot;&gt;https://trac.webkit.org/changeset/33023/1453846934034550&lt;/guid&gt;
+      &lt;description&gt;Description&lt;/description&gt;
+      &lt;category&gt;changeset&lt;/category&gt;
+    &lt;/item&gt;
+   &lt;/channel&gt;
+&lt;/rss&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptstestsresourcestestsjsfromrev199179trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptsteststestsjs"></a>
<div class="copfile"><h4>Copied: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/tests.js (from rev 199179, trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js) (0 => 199180)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/tests.js                                (rev 0)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/tests.js        2016-04-07 21:08:40 UTC (rev 199180)
</span><span class="lines">@@ -0,0 +1,358 @@
</span><ins>+/*
+ * Copyright (C) 2016 Apple, Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+if (window.testRunner) {
+    window.testRunner.dumpAsText();
+    window.testRunner.waitUntilDone();
+}
+
+QUnit.done = function(details) {
+    if (window.testRunner) {
+        var element = document.getElementById(&quot;qunit-testresult&quot;);
+        element.parentNode.removeChild(element);
+        element = document.getElementById(&quot;qunit-userAgent&quot;);
+        element.parentNode.removeChild(element);
+        window.testRunner.notifyDone();
+    }
+};
+
+module(&quot;Trac&quot;, {
+    setup: function() {
+        this.trac = new MockTrac();
+    }
+});
+
+test(&quot;_loaded&quot;, function()
+{
+    this.trac.recordedCommits = MockTrac.EXAMPLE_TRAC_COMMITS;
+    var client = new XMLHttpRequest();
+    client.open(&quot;GET&quot;, &quot;resources/test-fixture-trac-rss.xml&quot;, false);
+    client.onload = function () {
+        this.trac._loaded(client.responseXML);
+    }.bind(this);
+    client.send();
+    var commits = this.trac.recordedCommits;
+    strictEqual(commits.length, 8, &quot;should have 8 commits&quot;);
+    for (var i = 1; i &lt; commits.length; i++) {
+        var firstRevision = commits[i - 1].revisionNumber;
+        var secondRevision = commits[i].revisionNumber;
+        strictEqual(secondRevision - firstRevision, 1, &quot;commits should be in order &quot; + firstRevision + &quot;, &quot; + secondRevision);
+    }
+});
+
+test(&quot;parse gitBranches&quot;, function()
+{
+    var client = new XMLHttpRequest();
+    client.open(&quot;GET&quot;, &quot;resources/test-fixture-git-trac-rss.xml&quot;, false);
+    client.onload = function () {
+        this.trac._loaded(client.responseXML);
+    }.bind(this);
+    client.send();
+    var commits = this.trac.recordedCommits;
+    strictEqual(commits.length, 3, &quot;should have 3 commits&quot;);
+    strictEqual(commits[0].branches.length, 0, &quot;should have no branches&quot;);
+    strictEqual(commits[1].branches.length, 1, &quot;should have one branch&quot;);
+    strictEqual(commits[1].branches.includes(&quot;master&quot;), true, &quot;should contain branch master&quot;);
+    strictEqual(commits[2].branches.length, 2, &quot;should have two branches&quot;);
+    strictEqual(commits[2].branches.includes(&quot;master&quot;), true, &quot;should contain branch master&quot;);
+    strictEqual(commits[2].branches.includes(&quot;someOtherBranch&quot;), true, &quot;should contain branch someOtherBranch&quot;);
+});
+
+test(&quot;_parseRevisionFromURL&quot;, function()
+{
+    strictEqual(this.trac._parseRevisionFromURL(&quot;https://trac.webkit.org/changeset/190497&quot;), &quot;190497&quot;, &quot;Subversion&quot;);
+    strictEqual(this.trac._parseRevisionFromURL(&quot;http://trac.foobar.com/repository/changeset/75388/project&quot;), &quot;75388&quot;, &quot;Subversion with suffix&quot;);
+    strictEqual(this.trac._parseRevisionFromURL(&quot;https://git.foobar.com/trac/Whatever.git/changeset/0e498db5d8e5b5a342631&quot;), &quot;0e498db5d8e5b5a342631&quot;, &quot;Git&quot;);
+});
+
+test(&quot;nextRevision&quot;, function()
+{
+    this.trac.recordedCommits = MockTrac.EXAMPLE_TRAC_COMMITS;
+    strictEqual(this.trac.nextRevision(&quot;trunk&quot;, &quot;33020&quot;), &quot;33022&quot;, &quot;nextRevision same branch&quot;);
+    strictEqual(this.trac.nextRevision(&quot;trunk&quot;, &quot;33019&quot;), &quot;33020&quot;, &quot;nextRevision different branch&quot;);
+});
+
+test(&quot;indexOfRevision&quot;, function()
+{
+    this.trac.recordedCommits = MockTrac.EXAMPLE_TRAC_COMMITS;
+    strictEqual(this.trac.indexOfRevision(&quot;33020&quot;), 2, &quot;indexOfRevision&quot;);
+});
+
+test(&quot;commitsOnBranchLaterThanRevision&quot;, function()
+{
+    this.trac.recordedCommits = MockTrac.EXAMPLE_TRAC_COMMITS;
+    var commits = this.trac.commitsOnBranchLaterThanRevision(&quot;trunk&quot;, &quot;33020&quot;);
+    equal(commits.length, 1, &quot;greater than 33020&quot;);
+});
+
+test(&quot;commitsOnBranchLaterThanRevision no commits&quot;, function()
+{
+    this.trac.recordedCommits = MockTrac.EXAMPLE_TRAC_COMMITS;
+    var commits = this.trac.commitsOnBranchLaterThanRevision(&quot;someOtherBranch&quot;, &quot;33021&quot;);
+    equal(commits.length, 0, &quot;greater than 33021&quot;);
+});
+
+test(&quot;commitsOnBranchInRevisionRange&quot;, function()
+{
+    this.trac.recordedCommits = MockTrac.EXAMPLE_TRAC_COMMITS;
+    var commits = this.trac.commitsOnBranchInRevisionRange(&quot;trunk&quot;, &quot;33020&quot;, &quot;33022&quot;);
+    equal(commits.length, 2, &quot;in range 33020, 33022&quot;);
+});
+
+module(&quot;BuildBotQueueView&quot;, {
+    setup: function() {
+        this.trac = new MockTrac();
+        this.trac.recordedCommits = MockTrac.EXAMPLE_TRAC_COMMITS;
+        this.queue = new MockBuildbotQueue();
+        this.trunkBranch = {
+            name: &quot;trunk&quot;,
+            repository: {
+                name: &quot;openSource&quot;,
+                trac: this.trac,
+                isSVN: true,
+            }
+        };
+        this.queue.branches = [this.trunkBranch];
+        this.view = new MockBuildbotQueueView([this.queue]);
+    }
+});
+
+var settings = new Settings;
+test(&quot;_appendPendingRevisionCount&quot;, function()
+{
+    this.view._appendPendingRevisionCount(this.queue);
+    var revisionsBehind = this.view.element.getElementsByClassName(&quot;message&quot;)[0].innerHTML.match(/.*(\d+) revision(|s) behind/)[1];
+    strictEqual(revisionsBehind, &quot;1&quot;, &quot;assert revisions behind&quot;);
+});
+
+test(&quot;_popoverLinesForCommitRange&quot;, function()
+{
+    var lines = this.view._popoverLinesForCommitRange(this.trac, this.trunkBranch, &quot;33018&quot;, &quot;33020&quot;);
+    strictEqual(lines.length, 2, &quot;has 2 lines&quot;);
+});
+
+test(&quot;_presentPopoverForPendingCommits&quot;, function()
+{
+    var element = document.createElement(&quot;div&quot;);
+    var popover = new Dashboard.Popover();
+    this.view._presentPopoverForPendingCommits(element, popover, this.queue);
+    var nodeList = popover._element.getElementsByClassName(&quot;pending-commit&quot;);
+    strictEqual(nodeList.length, 1, &quot;has 1 pending commit&quot;);
+});
+
+test(&quot;_presentPopoverForPendingCommits no pending commits&quot;, function()
+{
+    this.someOtherBranch = {
+        name: &quot;someOtherBranch&quot;,
+        repository: {
+            name: &quot;openSource&quot;,
+            trac: this.trac,
+            isSVN: true,
+        }
+    };
+    this.queue.branches = [this.someOtherBranch];
+    this.view._latestProductiveIteration = function(queue)
+    {
+        var iteration = {
+            revision: { &quot;openSource&quot;: &quot;33021&quot; },
+        };
+        return iteration;
+    }
+    var element = document.createElement(&quot;div&quot;);
+    var popover = new Dashboard.Popover();
+    this.view._presentPopoverForPendingCommits(element, popover, this.queue);
+    var nodeList = popover._element.getElementsByClassName(&quot;pending-commit&quot;);
+    strictEqual(nodeList.length, 0, &quot;has 0 pending commits&quot;);
+});
+
+test(&quot;_presentPopoverForRevisionRange&quot;, function()
+{
+    var element = document.createElement(&quot;div&quot;);
+    var popover = new Dashboard.Popover();
+    var context = {
+        trac: this.trac,
+        branch: this.trunkBranch,
+        firstRevision: &quot;33018&quot;,
+        lastRevision: &quot;33020&quot;
+    };
+    this.view._presentPopoverForRevisionRange(element, popover, context);
+    var nodeList = popover._element.getElementsByClassName(&quot;pending-commit&quot;);
+    strictEqual(nodeList.length, 2, &quot;has 2 commits&quot;);
+});
+
+test(&quot;_presentPopoverForRevisionRange no commits&quot;, function()
+{
+    var element = document.createElement(&quot;div&quot;);
+    var popover = new Dashboard.Popover();
+    var context = {
+        trac: this.trac,
+        branch: this.trunkBranch,
+        firstRevision: &quot;33020&quot;,
+        lastRevision: &quot;33018&quot;
+    };
+    this.view._presentPopoverForRevisionRange(element, popover, context);
+    var nodeList = popover._element.getElementsByClassName(&quot;pending-commit&quot;);
+    strictEqual(nodeList.length, 0, &quot;has 0 commits&quot;);
+});
+
+test(&quot;_revisionContentWithPopoverForIteration&quot;, function()
+{
+    var finished = false;
+    var iteration = new BuildbotIteration(this.queue, 1, finished);
+    iteration.revision = { &quot;openSource&quot;: &quot;33018&quot; };
+    var previousIteration = null;
+    var content = this.view._revisionContentWithPopoverForIteration(iteration, previousIteration, this.trunkBranch);
+    strictEqual(content.innerHTML, &quot;r33018&quot;, &quot;should have correct revision number.&quot;);
+    strictEqual(content.classList.contains(&quot;revision-number&quot;), true, &quot;should have class 'revision-number'.&quot;);
+    strictEqual(content.classList.contains(&quot;popover-tracking&quot;), false, &quot;should not have class 'popover-tracking'.&quot;);
+});
+
+test(&quot;_revisionContentWithPopoverForIteration has previousIteration&quot;, function()
+{
+    var finished = false;
+    var iteration = new BuildbotIteration(this.queue, 2, finished);
+    iteration.revision = { &quot;openSource&quot;: &quot;33022&quot; };
+    var previousIteration = new BuildbotIteration(this.queue, 1, finished);
+    previousIteration.revision = { &quot;openSource&quot;: &quot;33018&quot; };
+    var content = this.view._revisionContentWithPopoverForIteration(iteration, previousIteration, this.trunkBranch);
+    strictEqual(content.innerHTML, &quot;r33022&quot;, &quot;should have correct revision number.&quot;);
+    strictEqual(content.classList.contains(&quot;revision-number&quot;), true, &quot;should have class 'revision-number'.&quot;);
+    strictEqual(content.classList.contains(&quot;popover-tracking&quot;), true, &quot;should have class 'popover-tracking'.&quot;);
+    var element = document.createElement(&quot;div&quot;);
+    var popover = new Dashboard.Popover();
+    this.view._presentPopoverForRevisionRange(element, popover, content.popoverTracker._context);
+    var nodeList = popover._element.getElementsByClassName(&quot;pending-commit&quot;);
+    strictEqual(nodeList.length, 2, &quot;has 2 commits&quot;);
+});
+
+test(&quot;_formatRevisionForDisplay Subversion&quot;, function()
+{
+    var repository = this.trunkBranch.repository;
+    repository.isSVN = true;
+    repository.isGit = false;
+    strictEqual(this.view._formatRevisionForDisplay(&quot;33018&quot;, repository), &quot;r33018&quot;, &quot;Should be r33018&quot;)
+});
+
+test(&quot;_formatRevisionForDisplay Git&quot;, function()
+{
+    var repository = this.trunkBranch.repository;
+    repository.isSVN = false;
+    repository.isGit = true;
+    strictEqual(this.view._formatRevisionForDisplay(&quot;0e498db5d8e5b5a342631&quot;, repository), &quot;0e498db&quot;, &quot;Should be 0e498db&quot;);
+});
+
+module(&quot;BuildBotQueue&quot;, {
+    setup: function() {
+        Dashboard.Repository.OpenSource.trac = new MockTrac();
+        Dashboard.Repository.OpenSource.trac.recordedCommits = MockTrac.EXAMPLE_TRAC_COMMITS;
+        this.queue = new MockBuildbotQueue();
+        this.queue.branches = [{
+            name: &quot;trunk&quot;,
+            repository: Dashboard.Repository.Opensource
+        }];
+    }
+});
+
+test(&quot;compareIterations by revisions&quot;, function()
+{
+    var finished = false;
+    var iteration1 = new BuildbotIteration(this.queue, 1, finished);
+    var iteration2 = new BuildbotIteration(this.queue, 2, finished);
+    iteration1.revision = { &quot;openSource&quot;: &quot;33018&quot; };
+    iteration2.revision = { &quot;openSource&quot;: &quot;33019&quot; };
+    iteration1.loaded = true;
+    iteration2.loaded = true;
+    ok(this.queue.compareIterations(iteration2, iteration1) &lt; 0, &quot;compareIterations: less than&quot;);
+    ok(this.queue.compareIterations(iteration1, iteration2) &gt; 0, &quot;compareIterations: greater than&quot;);
+    strictEqual(this.queue.compareIterations(iteration2, iteration2), 0, &quot;compareIterations: equal&quot;);
+});
+
+test(&quot;compareIterations by loaded (one revision missing)&quot;, function()
+{
+    var finished = false;
+    var iteration1 = new BuildbotIteration(this.queue, 1, finished);
+    var iteration2 = new BuildbotIteration(this.queue, 2, finished);
+    iteration1.revision = {};
+    iteration2.revision = { &quot;openSource&quot;: &quot;33019&quot; };
+    iteration1.loaded = false;
+    iteration2.loaded = true;
+    ok(this.queue.compareIterations(iteration1, iteration2) &gt; 0, &quot;compareIterations: greater than&quot;);
+    ok(this.queue.compareIterations(iteration2, iteration1) &lt; 0, &quot;compareIterations: less than&quot;);
+});
+
+test(&quot;compareIterations by loaded (same revision)&quot;, function()
+{
+    var finished = false;
+    var iteration1 = new BuildbotIteration(this.queue, 1, finished);
+    var iteration2 = new BuildbotIteration(this.queue, 2, finished);
+    iteration1.revision = { &quot;openSource&quot;: &quot;33019&quot; };
+    iteration2.revision = { &quot;openSource&quot;: &quot;33019&quot; };
+    iteration1.loaded = false;
+    iteration2.loaded = true;
+    ok(this.queue.compareIterations(iteration1, iteration2) &gt; 0, &quot;compareIterations: greater than&quot;);
+    ok(this.queue.compareIterations(iteration2, iteration1) &lt; 0, &quot;compareIterations: less than&quot;);
+});
+
+test(&quot;compareIterations by id (revisions not specified)&quot;, function()
+{
+    var finished = false;
+    var iteration1 = new BuildbotIteration(this.queue, 1, finished);
+    var iteration2 = new BuildbotIteration(this.queue, 2, finished);
+    iteration1.revision = {};
+    iteration2.revision = {};
+    iteration1.loaded = false;
+    iteration2.loaded = false;
+    ok(this.queue.compareIterations(iteration2, iteration1) &lt; 0, &quot;compareIterations: less than&quot;);
+    ok(this.queue.compareIterations(iteration1, iteration2) &gt; 0, &quot;compareIterations: greater than&quot;);
+    strictEqual(this.queue.compareIterations(iteration2, iteration2), 0, &quot;compareIterations: equal&quot;);
+});
+
+test(&quot;compareIterations by id (same revision)&quot;, function()
+{
+    var finished = false;
+    var iteration1 = new BuildbotIteration(this.queue, 1, finished);
+    var iteration2 = new BuildbotIteration(this.queue, 2, finished);
+    iteration1.revision = { &quot;openSource&quot;: &quot;33019&quot; };
+    iteration2.revision = { &quot;openSource&quot;: &quot;33019&quot; };
+    iteration1.loaded = false;
+    iteration2.loaded = false;
+    ok(this.queue.compareIterations(iteration2, iteration1) &lt; 0, &quot;compareIterations: less than&quot;);
+    ok(this.queue.compareIterations(iteration1, iteration2) &gt; 0, &quot;compareIterations: greater than&quot;);
+    strictEqual(this.queue.compareIterations(iteration2, iteration2), 0, &quot;compareIterations: equal&quot;);
+});
+
+test(&quot;compareIterationsByRevisions&quot;, function()
+{
+    var finished = false;
+    var iteration1 = new BuildbotIteration(this.queue, 1, finished);
+    var iteration2 = new BuildbotIteration(this.queue, 2, finished);
+    iteration1.revision = { &quot;openSource&quot;: &quot;33018&quot; };
+    iteration2.revision = { &quot;openSource&quot;: &quot;33019&quot; };
+    iteration1.loaded = true;
+    iteration2.loaded = false;
+    ok(this.queue.compareIterationsByRevisions(iteration2, iteration1) &lt; 0, &quot;compareIterationsByRevisions: less than&quot;);
+    ok(this.queue.compareIterationsByRevisions(iteration1, iteration2) &gt; 0, &quot;compareIterationsByRevisions: greater than&quot;);
+    strictEqual(this.queue.compareIterationsByRevisions(iteration2, iteration2), 0, &quot;compareIterationsByRevisions: equal&quot;);
+});
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptsteststestfixturegittracrssxml"></a>
<div class="delfile"><h4>Deleted: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/test-fixture-git-trac-rss.xml (199179 => 199180)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/test-fixture-git-trac-rss.xml        2016-04-07 21:01:42 UTC (rev 199179)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/test-fixture-git-trac-rss.xml        2016-04-07 21:08:40 UTC (rev 199180)
</span><span class="lines">@@ -1,75 +0,0 @@
</span><del>-&lt;?xml version=&quot;1.0&quot;?&gt;
-&lt;!--
-Copyright (C) 2016 Apple, Inc. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-1. Redistributions of source code must retain the above copyright
-   notice, this list of conditions and the following disclaimer.
-2. Redistributions in binary form must reproduce the above copyright
-   notice, this list of conditions and the following disclaimer in the
-   documentation and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
-THE POSSIBILITY OF SUCH DAMAGE.
---&gt;
-
-&lt;rss xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; version=&quot;2.0&quot;&gt;
-  &lt;channel&gt;
-    &lt;title&gt;WebKit&lt;/title&gt;
-    &lt;link&gt;https://trac.webkit.org/timeline&lt;/link&gt;
-    &lt;description&gt;Trac Timeline&lt;/description&gt;
-    &lt;language&gt;en-US&lt;/language&gt;
-    &lt;generator&gt;Trac 0.12.3&lt;/generator&gt;
-    &lt;image&gt;
-      &lt;title&gt;WebKit&lt;/title&gt;
-      &lt;url&gt;https://trac.webkit.org/chrome/site/favicon.png&lt;/url&gt;
-      &lt;link&gt;https://trac.webkit.org/timeline&lt;/link&gt;
-    &lt;/image&gt;
-    &lt;item&gt;
-      &lt;title&gt;Changeset [33025]: Ita prorsus inquam Ad corpus diceres pertinere, sed ea, quae dixi&lt;/title&gt;
-      &lt;branches&gt;master, someOtherBranch&lt;/branches&gt;
-
-        &lt;author&gt;george@webkit.org&lt;/author&gt;
-
-      &lt;pubDate&gt;Tue, 26 Jan 2016 22:48:15 GMT&lt;/pubDate&gt;
-      &lt;link&gt;https://trac.webkit.org/changeset/33025&lt;/link&gt;
-      &lt;guid isPermaLink=&quot;false&quot;&gt;https://trac.webkit.org/changeset/33025/1453848495332569&lt;/guid&gt;
-      &lt;description&gt;Description&lt;/description&gt;
-      &lt;category&gt;changeset&lt;/category&gt;
-    &lt;/item&gt;
-    &lt;item&gt;
-      &lt;title&gt;Changeset [33024]: An eum discere ea mavis, quae cum plane perdidiceriti nihil sciat&lt;/title&gt;
-      &lt;branches&gt;master&lt;/branches&gt;
-
-        &lt;author&gt;paul@webkit.org&lt;/author&gt;
-
-      &lt;pubDate&gt;Tue, 26 Jan 2016 22:22:25 GMT&lt;/pubDate&gt;
-      &lt;link&gt;https://trac.webkit.org/changeset/33024&lt;/link&gt;
-      &lt;guid isPermaLink=&quot;false&quot;&gt;https://trac.webkit.org/changeset/33024/1453846945244007&lt;/guid&gt;
-      &lt;description&gt;Description&lt;/description&gt;
-      &lt;category&gt;changeset&lt;/category&gt;
-    &lt;/item&gt;
-    &lt;item&gt;
-      &lt;title&gt;Changeset [33023]: Lorem ipsum dolor sit amet, consectetur adipiscing elit.&lt;/title&gt;
-
-        &lt;author&gt;john@webkit.org&lt;/author&gt;
-
-      &lt;pubDate&gt;Tue, 26 Jan 2016 22:22:14 GMT&lt;/pubDate&gt;
-      &lt;link&gt;https://trac.webkit.org/changeset/33023&lt;/link&gt;
-      &lt;guid isPermaLink=&quot;false&quot;&gt;https://trac.webkit.org/changeset/33023/1453846934034550&lt;/guid&gt;
-      &lt;description&gt;Description&lt;/description&gt;
-      &lt;category&gt;changeset&lt;/category&gt;
-    &lt;/item&gt;
-   &lt;/channel&gt;
-&lt;/rss&gt;
</del></span></pre></div>
<a id="trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptsteststestfixturetracrssxml"></a>
<div class="delfile"><h4>Deleted: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/test-fixture-trac-rss.xml (199179 => 199180)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/test-fixture-trac-rss.xml        2016-04-07 21:01:42 UTC (rev 199179)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/test-fixture-trac-rss.xml        2016-04-07 21:08:40 UTC (rev 199180)
</span><span class="lines">@@ -1,71 +0,0 @@
</span><del>-&lt;?xml version=&quot;1.0&quot;?&gt;
-&lt;!--
-Copyright (C) 2016 Apple, Inc. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-1. Redistributions of source code must retain the above copyright
-   notice, this list of conditions and the following disclaimer.
-2. Redistributions in binary form must reproduce the above copyright
-   notice, this list of conditions and the following disclaimer in the
-   documentation and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
-THE POSSIBILITY OF SUCH DAMAGE.
---&gt;
-
-&lt;rss xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; version=&quot;2.0&quot;&gt;
-  &lt;channel&gt;
-    &lt;title&gt;WebKit&lt;/title&gt;
-    &lt;link&gt;https://trac.webkit.org/timeline&lt;/link&gt;
-    &lt;description&gt;Trac Timeline&lt;/description&gt;
-    &lt;language&gt;en-US&lt;/language&gt;
-    &lt;generator&gt;Trac 0.12.3&lt;/generator&gt;
-    &lt;image&gt;
-      &lt;title&gt;WebKit&lt;/title&gt;
-      &lt;url&gt;https://trac.webkit.org/chrome/site/favicon.png&lt;/url&gt;
-      &lt;link&gt;https://trac.webkit.org/timeline&lt;/link&gt;
-    &lt;/image&gt;
-    &lt;item&gt;
-      &lt;title&gt;Changeset [33025]: Ita prorsus inquam Ad corpus diceres pertinere, sed ea, quae dixi&lt;/title&gt;
-      
-        &lt;author&gt;george@webkit.org&lt;/author&gt;
-
-      &lt;pubDate&gt;Tue, 26 Jan 2016 22:48:15 GMT&lt;/pubDate&gt;
-      &lt;link&gt;https://trac.webkit.org/changeset/33025&lt;/link&gt;
-      &lt;guid isPermaLink=&quot;false&quot;&gt;https://trac.webkit.org/changeset/33025/1453848495332569&lt;/guid&gt;
-      &lt;description&gt;Description&lt;/description&gt;
-      &lt;category&gt;changeset&lt;/category&gt;
-    &lt;/item&gt;&lt;item&gt;
-      &lt;title&gt;Changeset [33024]: An eum discere ea mavis, quae cum plane perdidiceriti nihil sciat&lt;/title&gt;
-      
-        &lt;author&gt;paul@webkit.org&lt;/author&gt;
-
-      &lt;pubDate&gt;Tue, 26 Jan 2016 22:22:25 GMT&lt;/pubDate&gt;
-      &lt;link&gt;https://trac.webkit.org/changeset/33024&lt;/link&gt;
-      &lt;guid isPermaLink=&quot;false&quot;&gt;https://trac.webkit.org/changeset/33024/1453846945244007&lt;/guid&gt;
-      &lt;description&gt;Description&lt;/description&gt;
-      &lt;category&gt;changeset&lt;/category&gt;
-    &lt;/item&gt;&lt;item&gt;
-      &lt;title&gt;Changeset [33023]: Lorem ipsum dolor sit amet, consectetur adipiscing elit.&lt;/title&gt;
-      
-        &lt;author&gt;john@webkit.org&lt;/author&gt;
-
-      &lt;pubDate&gt;Tue, 26 Jan 2016 22:22:14 GMT&lt;/pubDate&gt;
-      &lt;link&gt;https://trac.webkit.org/changeset/33023&lt;/link&gt;
-      &lt;guid isPermaLink=&quot;false&quot;&gt;https://trac.webkit.org/changeset/33023/1453846934034550&lt;/guid&gt;
-      &lt;description&gt;Description&lt;/description&gt;
-      &lt;category&gt;changeset&lt;/category&gt;
-    &lt;/item&gt;
-   &lt;/channel&gt;
-&lt;/rss&gt;
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkToolsBuildSlaveSupportbuildwebkitorgconfigpublic_htmldashboardScriptsteststestsjs"></a>
<div class="delfile"><h4>Deleted: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js (199179 => 199180)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js        2016-04-07 21:01:42 UTC (rev 199179)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js        2016-04-07 21:08:40 UTC (rev 199180)
</span><span class="lines">@@ -1,343 +0,0 @@
</span><del>-/*
- * Copyright (C) 2016 Apple, Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-module(&quot;Trac&quot;, {
-    setup: function() {
-        this.trac = new MockTrac();
-    }
-});
-
-test(&quot;_loaded&quot;, function()
-{
-    this.trac.recordedCommits = MockTrac.EXAMPLE_TRAC_COMMITS;
-    var client = new XMLHttpRequest();
-    client.open('GET', 'test-fixture-trac-rss.xml', false);
-    client.onload = function () {
-        this.trac._loaded(client.responseXML);
-    }.bind(this);
-    client.send();
-    var commits = this.trac.recordedCommits;
-    strictEqual(commits.length, 8, &quot;should have 8 commits&quot;);
-    for (var i = 1; i &lt; commits.length; i++) {
-        var firstRevision = commits[i - 1].revisionNumber;
-        var secondRevision = commits[i].revisionNumber;
-        strictEqual(secondRevision - firstRevision, 1, &quot;commits should be in order &quot; + firstRevision + &quot;, &quot; + secondRevision);
-    }
-});
-
-test(&quot;parse gitBranches&quot;, function()
-{
-    var client = new XMLHttpRequest();
-    client.open(&quot;GET&quot;, &quot;test-fixture-git-trac-rss.xml&quot;, false);
-    client.onload = function () {
-        this.trac._loaded(client.responseXML);
-    }.bind(this);
-    client.send();
-    var commits = this.trac.recordedCommits;
-    strictEqual(commits.length, 3, &quot;should have 3 commits&quot;);
-    strictEqual(commits[0].branches.length, 0, &quot;should have no branches&quot;);
-    strictEqual(commits[1].branches.length, 1, &quot;should have one branch&quot;);
-    strictEqual(commits[1].branches.includes(&quot;master&quot;), true, &quot;should contain branch master&quot;);
-    strictEqual(commits[2].branches.length, 2, &quot;should have two branches&quot;);
-    strictEqual(commits[2].branches.includes(&quot;master&quot;), true, &quot;should contain branch master&quot;);
-    strictEqual(commits[2].branches.includes(&quot;someOtherBranch&quot;), true, &quot;should contain branch someOtherBranch&quot;);
-});
-
-test(&quot;_parseRevisionFromURL&quot;, function()
-{
-    strictEqual(this.trac._parseRevisionFromURL(&quot;https://trac.webkit.org/changeset/190497&quot;), &quot;190497&quot;, &quot;Subversion&quot;);
-    strictEqual(this.trac._parseRevisionFromURL(&quot;http://trac.foobar.com/repository/changeset/75388/project&quot;), &quot;75388&quot;, &quot;Subversion with suffix&quot;);
-    strictEqual(this.trac._parseRevisionFromURL(&quot;https://git.foobar.com/trac/Whatever.git/changeset/0e498db5d8e5b5a342631&quot;), &quot;0e498db5d8e5b5a342631&quot;, &quot;Git&quot;);
-});
-
-test(&quot;nextRevision&quot;, function()
-{
-    this.trac.recordedCommits = MockTrac.EXAMPLE_TRAC_COMMITS;
-    strictEqual(this.trac.nextRevision(&quot;trunk&quot;, &quot;33020&quot;), &quot;33022&quot;, &quot;nextRevision same branch&quot;);
-    strictEqual(this.trac.nextRevision(&quot;trunk&quot;, &quot;33019&quot;), &quot;33020&quot;, &quot;nextRevision different branch&quot;);
-});
-
-test(&quot;indexOfRevision&quot;, function()
-{
-    this.trac.recordedCommits = MockTrac.EXAMPLE_TRAC_COMMITS;
-    strictEqual(this.trac.indexOfRevision(&quot;33020&quot;), 2, &quot;indexOfRevision&quot;);
-});
-
-test(&quot;commitsOnBranchLaterThanRevision&quot;, function()
-{
-    this.trac.recordedCommits = MockTrac.EXAMPLE_TRAC_COMMITS;
-    var commits = this.trac.commitsOnBranchLaterThanRevision(&quot;trunk&quot;, &quot;33020&quot;);
-    equal(commits.length, 1, &quot;greater than 33020&quot;);
-});
-
-test(&quot;commitsOnBranchLaterThanRevision no commits&quot;, function()
-{
-    this.trac.recordedCommits = MockTrac.EXAMPLE_TRAC_COMMITS;
-    var commits = this.trac.commitsOnBranchLaterThanRevision(&quot;someOtherBranch&quot;, &quot;33021&quot;);
-    equal(commits.length, 0, &quot;greater than 33021&quot;);
-});
-
-test(&quot;commitsOnBranchInRevisionRange&quot;, function()
-{
-    this.trac.recordedCommits = MockTrac.EXAMPLE_TRAC_COMMITS;
-    var commits = this.trac.commitsOnBranchInRevisionRange(&quot;trunk&quot;, &quot;33020&quot;, &quot;33022&quot;);
-    equal(commits.length, 2, &quot;in range 33020, 33022&quot;);
-});
-
-module(&quot;BuildBotQueueView&quot;, {
-    setup: function() {
-        this.trac = new MockTrac();
-        this.trac.recordedCommits = MockTrac.EXAMPLE_TRAC_COMMITS;
-        this.queue = new MockBuildbotQueue();
-        this.trunkBranch = {
-            name: &quot;trunk&quot;,
-            repository: {
-                name: &quot;openSource&quot;,
-                trac: this.trac,
-                isSVN: true,
-            }
-        };
-        this.queue.branches = [this.trunkBranch];
-        this.view = new MockBuildbotQueueView([this.queue]);
-    }
-});
-
-var settings = new Settings;
-test(&quot;_appendPendingRevisionCount&quot;, function()
-{
-    this.view._appendPendingRevisionCount(this.queue);
-    var revisionsBehind = this.view.element.getElementsByClassName(&quot;message&quot;)[0].innerHTML.match(/.*(\d+) revision(|s) behind/)[1];
-    strictEqual(revisionsBehind, &quot;1&quot;, &quot;assert revisions behind&quot;);
-});
-
-test(&quot;_popoverLinesForCommitRange&quot;, function()
-{
-    var lines = this.view._popoverLinesForCommitRange(this.trac, this.trunkBranch, &quot;33018&quot;, &quot;33020&quot;);
-    strictEqual(lines.length, 2, &quot;has 2 lines&quot;);
-});
-
-test(&quot;_presentPopoverForPendingCommits&quot;, function()
-{
-    var element = document.createElement(&quot;div&quot;);
-    var popover = new Dashboard.Popover();
-    this.view._presentPopoverForPendingCommits(element, popover, this.queue);
-    var nodeList = popover._element.getElementsByClassName(&quot;pending-commit&quot;);
-    strictEqual(nodeList.length, 1, &quot;has 1 pending commit&quot;);
-});
-
-test(&quot;_presentPopoverForPendingCommits no pending commits&quot;, function()
-{
-    this.someOtherBranch = {
-        name: &quot;someOtherBranch&quot;,
-        repository: {
-            name: &quot;openSource&quot;,
-            trac: this.trac,
-            isSVN: true,
-        }
-    };
-    this.queue.branches = [this.someOtherBranch];
-    this.view._latestProductiveIteration = function(queue)
-    {
-        var iteration = {
-            revision: { &quot;openSource&quot;: &quot;33021&quot; },
-        };
-        return iteration;
-    }
-    var element = document.createElement(&quot;div&quot;);
-    var popover = new Dashboard.Popover();
-    this.view._presentPopoverForPendingCommits(element, popover, this.queue);
-    var nodeList = popover._element.getElementsByClassName(&quot;pending-commit&quot;);
-    strictEqual(nodeList.length, 0, &quot;has 0 pending commits&quot;);
-});
-
-test(&quot;_presentPopoverForRevisionRange&quot;, function()
-{
-    var element = document.createElement(&quot;div&quot;);
-    var popover = new Dashboard.Popover();
-    var context = {
-        trac: this.trac,
-        branch: this.trunkBranch,
-        firstRevision: &quot;33018&quot;,
-        lastRevision: &quot;33020&quot;
-    };
-    this.view._presentPopoverForRevisionRange(element, popover, context);
-    var nodeList = popover._element.getElementsByClassName(&quot;pending-commit&quot;);
-    strictEqual(nodeList.length, 2, &quot;has 2 commits&quot;);
-});
-
-test(&quot;_presentPopoverForRevisionRange no commits&quot;, function()
-{
-    var element = document.createElement(&quot;div&quot;);
-    var popover = new Dashboard.Popover();
-    var context = {
-        trac: this.trac,
-        branch: this.trunkBranch,
-        firstRevision: &quot;33020&quot;,
-        lastRevision: &quot;33018&quot;
-    };
-    this.view._presentPopoverForRevisionRange(element, popover, context);
-    var nodeList = popover._element.getElementsByClassName(&quot;pending-commit&quot;);
-    strictEqual(nodeList.length, 0, &quot;has 0 commits&quot;);
-});
-
-test(&quot;_revisionContentWithPopoverForIteration&quot;, function()
-{
-    var finished = false;
-    var iteration = new BuildbotIteration(this.queue, 1, finished);
-    iteration.revision = { &quot;openSource&quot;: &quot;33018&quot; };
-    var previousIteration = null;
-    var content = this.view._revisionContentWithPopoverForIteration(iteration, previousIteration, this.trunkBranch);
-    strictEqual(content.innerHTML, &quot;r33018&quot;, &quot;should have correct revision number.&quot;);
-    strictEqual(content.classList.contains(&quot;revision-number&quot;), true, &quot;should have class 'revision-number'.&quot;);
-    strictEqual(content.classList.contains(&quot;popover-tracking&quot;), false, &quot;should not have class 'popover-tracking'.&quot;);
-});
-
-test(&quot;_revisionContentWithPopoverForIteration has previousIteration&quot;, function()
-{
-    var finished = false;
-    var iteration = new BuildbotIteration(this.queue, 2, finished);
-    iteration.revision = { &quot;openSource&quot;: &quot;33022&quot; };
-    var previousIteration = new BuildbotIteration(this.queue, 1, finished);
-    previousIteration.revision = { &quot;openSource&quot;: &quot;33018&quot; };
-    var content = this.view._revisionContentWithPopoverForIteration(iteration, previousIteration, this.trunkBranch);
-    strictEqual(content.innerHTML, &quot;r33022&quot;, &quot;should have correct revision number.&quot;);
-    strictEqual(content.classList.contains(&quot;revision-number&quot;), true, &quot;should have class 'revision-number'.&quot;);
-    strictEqual(content.classList.contains(&quot;popover-tracking&quot;), true, &quot;should have class 'popover-tracking'.&quot;);
-    var element = document.createElement(&quot;div&quot;);
-    var popover = new Dashboard.Popover();
-    this.view._presentPopoverForRevisionRange(element, popover, content.popoverTracker._context);
-    var nodeList = popover._element.getElementsByClassName(&quot;pending-commit&quot;);
-    strictEqual(nodeList.length, 2, &quot;has 2 commits&quot;);
-});
-
-test(&quot;_formatRevisionForDisplay Subversion&quot;, function()
-{
-    var repository = this.trunkBranch.repository;
-    repository.isSVN = true;
-    repository.isGit = false;
-    strictEqual(this.view._formatRevisionForDisplay(&quot;33018&quot;, repository), &quot;r33018&quot;, &quot;Should be r33018&quot;)
-});
-
-test(&quot;_formatRevisionForDisplay Git&quot;, function()
-{
-    var repository = this.trunkBranch.repository;
-    repository.isSVN = false;
-    repository.isGit = true;
-    strictEqual(this.view._formatRevisionForDisplay(&quot;0e498db5d8e5b5a342631&quot;, repository), &quot;0e498db&quot;, &quot;Should be 0e498db&quot;);
-});
-
-module(&quot;BuildBotQueue&quot;, {
-    setup: function() {
-        Dashboard.Repository.OpenSource.trac = new MockTrac();
-        Dashboard.Repository.OpenSource.trac.recordedCommits = MockTrac.EXAMPLE_TRAC_COMMITS;
-        this.queue = new MockBuildbotQueue();
-        this.queue.branches = [{
-            name: &quot;trunk&quot;,
-            repository: Dashboard.Repository.Opensource
-        }];
-    }
-});
-
-test(&quot;compareIterations by revisions&quot;, function()
-{
-    var finished = false;
-    var iteration1 = new BuildbotIteration(this.queue, 1, finished);
-    var iteration2 = new BuildbotIteration(this.queue, 2, finished);
-    iteration1.revision = { &quot;openSource&quot;: &quot;33018&quot; };
-    iteration2.revision = { &quot;openSource&quot;: &quot;33019&quot; };
-    iteration1.loaded = true;
-    iteration2.loaded = true;
-    ok(this.queue.compareIterations(iteration2, iteration1) &lt; 0, &quot;compareIterations: less than&quot;);
-    ok(this.queue.compareIterations(iteration1, iteration2) &gt; 0, &quot;compareIterations: greater than&quot;);
-    strictEqual(this.queue.compareIterations(iteration2, iteration2), 0, &quot;compareIterations: equal&quot;);
-});
-
-test(&quot;compareIterations by loaded (one revision missing)&quot;, function()
-{
-    var finished = false;
-    var iteration1 = new BuildbotIteration(this.queue, 1, finished);
-    var iteration2 = new BuildbotIteration(this.queue, 2, finished);
-    iteration1.revision = {};
-    iteration2.revision = { &quot;openSource&quot;: &quot;33019&quot; };
-    iteration1.loaded = false;
-    iteration2.loaded = true;
-    ok(this.queue.compareIterations(iteration1, iteration2) &gt; 0, &quot;compareIterations: greater than&quot;);
-    ok(this.queue.compareIterations(iteration2, iteration1) &lt; 0, &quot;compareIterations: less than&quot;);
-});
-
-test(&quot;compareIterations by loaded (same revision)&quot;, function()
-{
-    var finished = false;
-    var iteration1 = new BuildbotIteration(this.queue, 1, finished);
-    var iteration2 = new BuildbotIteration(this.queue, 2, finished);
-    iteration1.revision = { &quot;openSource&quot;: &quot;33019&quot; };
-    iteration2.revision = { &quot;openSource&quot;: &quot;33019&quot; };
-    iteration1.loaded = false;
-    iteration2.loaded = true;
-    ok(this.queue.compareIterations(iteration1, iteration2) &gt; 0, &quot;compareIterations: greater than&quot;);
-    ok(this.queue.compareIterations(iteration2, iteration1) &lt; 0, &quot;compareIterations: less than&quot;);
-});
-
-test(&quot;compareIterations by id (revisions not specified)&quot;, function()
-{
-    var finished = false;
-    var iteration1 = new BuildbotIteration(this.queue, 1, finished);
-    var iteration2 = new BuildbotIteration(this.queue, 2, finished);
-    iteration1.revision = {};
-    iteration2.revision = {};
-    iteration1.loaded = false;
-    iteration2.loaded = false;
-    ok(this.queue.compareIterations(iteration2, iteration1) &lt; 0, &quot;compareIterations: less than&quot;);
-    ok(this.queue.compareIterations(iteration1, iteration2) &gt; 0, &quot;compareIterations: greater than&quot;);
-    strictEqual(this.queue.compareIterations(iteration2, iteration2), 0, &quot;compareIterations: equal&quot;);
-});
-
-test(&quot;compareIterations by id (same revision)&quot;, function()
-{
-    var finished = false;
-    var iteration1 = new BuildbotIteration(this.queue, 1, finished);
-    var iteration2 = new BuildbotIteration(this.queue, 2, finished);
-    iteration1.revision = { &quot;openSource&quot;: &quot;33019&quot; };
-    iteration2.revision = { &quot;openSource&quot;: &quot;33019&quot; };
-    iteration1.loaded = false;
-    iteration2.loaded = false;
-    ok(this.queue.compareIterations(iteration2, iteration1) &lt; 0, &quot;compareIterations: less than&quot;);
-    ok(this.queue.compareIterations(iteration1, iteration2) &gt; 0, &quot;compareIterations: greater than&quot;);
-    strictEqual(this.queue.compareIterations(iteration2, iteration2), 0, &quot;compareIterations: equal&quot;);
-});
-
-test(&quot;compareIterationsByRevisions&quot;, function()
-{
-    var finished = false;
-    var iteration1 = new BuildbotIteration(this.queue, 1, finished);
-    var iteration2 = new BuildbotIteration(this.queue, 2, finished);
-    iteration1.revision = { &quot;openSource&quot;: &quot;33018&quot; };
-    iteration2.revision = { &quot;openSource&quot;: &quot;33019&quot; };
-    iteration1.loaded = true;
-    iteration2.loaded = false;
-    ok(this.queue.compareIterationsByRevisions(iteration2, iteration1) &lt; 0, &quot;compareIterationsByRevisions: less than&quot;);
-    ok(this.queue.compareIterationsByRevisions(iteration1, iteration2) &gt; 0, &quot;compareIterationsByRevisions: greater than&quot;);
-    strictEqual(this.queue.compareIterationsByRevisions(iteration2, iteration2), 0, &quot;compareIterationsByRevisions: equal&quot;);
-});
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkToolsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Tools/ChangeLog (199179 => 199180)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/ChangeLog        2016-04-07 21:01:42 UTC (rev 199179)
+++ trunk/Tools/ChangeLog        2016-04-07 21:08:40 UTC (rev 199180)
</span><span class="lines">@@ -1,3 +1,38 @@
</span><ins>+2016-04-07  Jason Marcell  &lt;jmarcell@apple.com&gt;
+
+        Adding layout tests for the bot watcher's dashboard QUnit tests.
+        https://bugs.webkit.org/show_bug.cgi?id=155272
+
+        Reviewed by Daniel Bates.
+
+        Moved supporting resources into a resources folder and updated index.html accordingly
+        to point to the new locations. Added code to tests.js to dumpAsText when QUnit is done.
+
+        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/index-expected.txt: Added.
+        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/index.html: Updated to point to tests.js and Mock files in resources directory.
+        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/MockBuildbotQueue.js: Renamed from
+        Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockBuildbotQueue.js.
+        (MockBuildbotQueue):
+        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/MockBuildbotQueueView.js: Renamed from
+        Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockBuildbotQueueView.js.
+        (MockBuildbotQueueView):
+        (MockBuildbotQueueView.prototype._latestProductiveIteration):
+        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/MockTrac.js: Renamed from
+        Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/MockTrac.js.
+        (MockTrac):
+        (MockTrac.prototype.get oldestRecordedRevisionNumber):
+        (MockTrac.prototype.get latestRecordedRevisionNumber):
+        (MockTrac.prototype.loadMoreHistoricalData):
+        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/test-fixture-git-trac-rss.xml: Renamed from
+        Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/test-fixture-git-trac-rss.xml.
+        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/test-fixture-trac-rss.xml: Renamed from
+        Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/test-fixture-trac-rss.xml.
+        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/resources/tests.js: Renamed from
+        Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests/tests.js.
+        Updated the unit tests for Trac._loaded() to point to the XML files that are now located in the 'resources' directory.
+        (QUnit.done): Added. Removes machine-specific output from test results and calls testRunner.notifyDone to let the layout test harness know that all testing is done.
+        * Scripts/run-dashboard-tests: Added.
+
</ins><span class="cx"> 2016-04-06  ChangSeok Oh  &lt;changseok@webkit.org&gt;
</span><span class="cx"> 
</span><span class="cx">         Unreviewed, Update my primary email address and expertise.
</span></span></pre></div>
<a id="trunkToolsScriptsrundashboardtests"></a>
<div class="addfile"><h4>Added: trunk/Tools/Scripts/run-dashboard-tests (0 => 199180)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/Scripts/run-dashboard-tests                                (rev 0)
+++ trunk/Tools/Scripts/run-dashboard-tests        2016-04-07 21:08:40 UTC (rev 199180)
</span><span class="lines">@@ -0,0 +1,30 @@
</span><ins>+#!/bin/sh
+
+# Copyright (C) 2016 Apple Inc. All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1. Redistributions of source code must retain the above copyright
+#    notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+#    notice, this list of conditions and the following disclaimer in the
+#    documentation and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
+# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
+# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+# OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+TOOLS_DIRECTORY=&quot;$(dirname $0)&quot;
+RUN_WEBKIT_TESTS=&quot;$TOOLS_DIRECTORY/run-webkit-tests&quot;
+TEST_DIRECTORY=&quot;$TOOLS_DIRECTORY/../BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/tests&quot;
+
+$RUN_WEBKIT_TESTS --layout-tests-directory=$TEST_DIRECTORY &quot;$@&quot;
</ins><span class="cx">Property changes on: trunk/Tools/Scripts/run-dashboard-tests
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnexecutable"></a>
<div class="addfile"><h4>Added: svn:executable</h4></div>
</div>

</body>
</html>