Bug 883314 part 4: use the chunking code for mochitest-browser-chrome, r=jmaher

--HG--
extra : transplant_source : E%26%86p%E0%14%99Jb%19%A8%A8%D9%23%7E%9EiH%DBf
This commit is contained in:
Gavin Sharp 2013-06-16 11:26:31 -04:00
parent 102d8be2b6
commit 8495f67a0d

View File

@ -12,6 +12,7 @@
<script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/MozillaLogger.js"/>
<script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/LogController.js"/>
<script type="application/javascript" src="chrome://mochikit/content/chrome-harness.js"/>
<script type="application/javascript" src="chrome://mochikit/content/chunkifyTests.js"/>
<style xmlns="http://www.w3.org/1999/xhtml"><![CDATA[
#results {
margin: 5px;
@ -178,6 +179,12 @@
var fileNames = [];
var fileNameRegexp = /browser_.+\.js$/;
srvScope.arrayOfTestFiles(links, fileNames, fileNameRegexp);
if (gConfig.totalChunks && gConfig.thisChunk) {
fileNames = chunkifyTests(fileNames, gConfig.totalChunks,
gConfig.thisChunk, gConfig.chunkByDir);
}
return fileNames.map(function (f) new browserTest(f));
}