Fix a typo in SanityTest.js causing skewed Telemetry data. (bug 1191613, r=mchang)

This commit is contained in:
David Anderson
2015-08-06 13:07:36 -07:00
parent c69cfe7021
commit d9c8688dff

View File

@@ -244,11 +244,11 @@ SanityTest.prototype = {
}
function checkPref(pref, value, reason) {
var prefValue = Preferences.get(pref, "");
var prefValue = Preferences.get(pref, undefined);
if (prefValue == value) {
return true;
}
if (value == "") {
if (prefValue === undefined) {
reportTestReason(REASON_FIRST_RUN);
} else {
reportTestReason(reason);