diff options
Diffstat (limited to 'toolkit/mozapps/extensions/test/xpinstall/browser_unsigned_trigger.js')
-rw-r--r-- | toolkit/mozapps/extensions/test/xpinstall/browser_unsigned_trigger.js | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/toolkit/mozapps/extensions/test/xpinstall/browser_unsigned_trigger.js b/toolkit/mozapps/extensions/test/xpinstall/browser_unsigned_trigger.js index 006879439..ab0f238aa 100644 --- a/toolkit/mozapps/extensions/test/xpinstall/browser_unsigned_trigger.js +++ b/toolkit/mozapps/extensions/test/xpinstall/browser_unsigned_trigger.js @@ -36,21 +36,15 @@ function install_ended(install, addon) { install.cancel(); } -const finish_test = Task.async(function*(count) { +function finish_test(count) { is(count, 1, "1 Add-on should have been successfully installed"); - Services.perms.remove(makeURI("http://example.com"), "install"); + Services.perms.remove("example.com", "install"); - const results = yield ContentTask.spawn(gBrowser.selectedBrowser, null, () => { - return { - return: content.document.getElementById("return").textContent, - status: content.document.getElementById("status").textContent, - } - }) - - is(results.return, "true", "installTrigger should have claimed success"); - is(results.status, "0", "Callback should have seen a success"); + var doc = gBrowser.contentDocument; + is(doc.getElementById("return").textContent, "true", "installTrigger should have claimed success"); + is(doc.getElementById("status").textContent, "0", "Callback should have seen a success"); gBrowser.removeCurrentTab(); Harness.finish(); -}); +} |