mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 841554 - Follow-up: fix browser_aboutHome.js. r=gps
This commit is contained in:
parent
3e1781cd56
commit
6b5a85414b
@ -137,15 +137,16 @@ let gTests = [
|
||||
let provider = reporter.getProvider("org.mozilla.searches");
|
||||
ok(provider, "Searches provider is available.");
|
||||
|
||||
let engineName = doc.documentElement.getAttribute("searchEngineName").toLowerCase();
|
||||
let engineName = doc.documentElement.getAttribute("searchEngineName");
|
||||
let id = Services.search.getEngineByName(engineName).identifier;
|
||||
|
||||
let m = provider.getMeasurement("counts", 1);
|
||||
let m = provider.getMeasurement("counts", 2);
|
||||
m.getValues().then(function onValues(data) {
|
||||
let now = new Date();
|
||||
ok(data.days.hasDay(now), "Have data for today.");
|
||||
|
||||
let day = data.days.getDay(now);
|
||||
let field = engineName + ".abouthome";
|
||||
let field = id + ".abouthome";
|
||||
ok(day.has(field), "Have data for about home on this engine.");
|
||||
|
||||
// Note the search from the previous test.
|
||||
|
Loading…
Reference in New Issue
Block a user