Bug 553102 - Fix mock prompt service. r=ted

This commit is contained in:
Bobby Holley 2012-05-24 13:04:57 +02:00
parent 6c95fda518
commit 00951c016e

View File

@ -80,7 +80,7 @@ function registerMockPromptService()
checkState: aCheckState checkState: aCheckState
}; };
aCheckState.value = true; SpecialPowers.wrap(aCheckState).value = true;
}, },
confirm: function(aDialogTitle, aText) confirm: function(aDialogTitle, aText)
@ -106,7 +106,7 @@ function registerMockPromptService()
checkState: aCheckState checkState: aCheckState
}; };
aCheckState.value = true; SpecialPowers.wrap(aCheckState).value = true;
return true; return true;
}, },
@ -125,7 +125,7 @@ function registerMockPromptService()
}; };
if (aCheckMsg != null) if (aCheckMsg != null)
aCheckState.value = true; SpecialPowers.wrap(aCheckState).value = true;
return 0; return 0;
}, },
@ -143,7 +143,7 @@ function registerMockPromptService()
}; };
if (aCheckMsg != null) if (aCheckMsg != null)
aCheckState.value = true; SpecialPowers.wrap(aCheckState).value = true;
return true; return true;
}, },