Bug 841554 - Follow-up: fix browser_aboutHome.js. r=gps

This commit is contained in:
Richard Newman 2013-03-29 12:17:14 -07:00
parent 3e1781cd56
commit 6b5a85414b

View File

@ -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.