mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
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:
parent
102d8be2b6
commit
8495f67a0d
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user