Bug 881242 - part 1 - rename reftest's gFilter to gURLFilterRegex; r=dbaron

This commit is contained in:
Nathan Froyd 2013-06-07 09:42:56 -04:00
parent 1e0a3084a4
commit 85fb849a94

View File

@ -44,7 +44,7 @@ var gIgnoreWindowSize = false;
var gTotalChunks = 0;
var gThisChunk = 0;
var gContainingWindow = null;
var gFilter = null;
var gURLFilterRegex = null;
// "<!--CLEAR-->"
const BLANK_URL_FOR_CLEARING = "data:text/html;charset=UTF-8,%3C%21%2D%2DCLEAR%2D%2D%3E";
@ -342,7 +342,7 @@ function InitAndStartRefTests()
}
try {
gFilter = new RegExp(prefs.getCharPref("reftest.filter"));
gURLFilterRegex = new RegExp(prefs.getCharPref("reftest.filter"));
} catch(e) {}
gWindowUtils = gContainingWindow.QueryInterface(CI.nsIInterfaceRequestor).getInterface(CI.nsIDOMWindowUtils);
@ -714,7 +714,7 @@ function ReadTopManifest(aFileURL)
function AddTestItem(aTest)
{
if (gFilter && !gFilter.test(aTest.url1.spec))
if (gURLFilterRegex && !gURLFilterRegex.test(aTest.url1.spec))
return;
gURLs.push(aTest);
}