mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07: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
8cbb355be2
commit
354f38240f
@ -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