mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 16:25:38 +00:00
Bug 881242 - part 1 - rename reftest's gFilter to gURLFilterRegex; r=dbaron
This commit is contained in:
parent
1e0a3084a4
commit
85fb849a94
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user