diff options
Diffstat (limited to 'toolkit/mozapps/extensions/test/xpinstall/browser_cancel.js')
-rw-r--r-- | toolkit/mozapps/extensions/test/xpinstall/browser_cancel.js | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/toolkit/mozapps/extensions/test/xpinstall/browser_cancel.js b/toolkit/mozapps/extensions/test/xpinstall/browser_cancel.js index e30d7a0e5..8fb6efcb8 100644 --- a/toolkit/mozapps/extensions/test/xpinstall/browser_cancel.js +++ b/toolkit/mozapps/extensions/test/xpinstall/browser_cancel.js @@ -14,8 +14,8 @@ function test() { pm.add(makeURI("http://example.com/"), "install", pm.ALLOW_ACTION); var triggers = encodeURIComponent(JSON.stringify({ - "Unsigned XPI": TESTROOT + "amosigned.xpi", - "Unsigned XPI 2": TESTROOT + "amosigned2.xpi", + "Signed XPI": TESTROOT + "signed.xpi", + "Signed XPI 2": TESTROOT + "signed2.xpi", })); gBrowser.selectedTab = gBrowser.addTab(); gBrowser.loadURI(TESTROOT + "installtrigger.html?" + triggers); @@ -33,15 +33,17 @@ function get_item(items, url) { function confirm_install(window) { let items = window.document.getElementById("itemList").childNodes; is(items.length, 2, "Should be 2 items listed in the confirmation dialog"); - let item = get_item(items, TESTROOT + "amosigned.xpi"); + let item = get_item(items, TESTROOT + "signed.xpi"); if (item) { - is(item.name, "XPI Test", "Should have seen the name from the trigger list"); - is(item.signed, "false", "Should have listed the item as signed"); + is(item.name, "Signed XPI Test", "Should have seen the name from the trigger list"); + is(item.cert, "(Object Signer)", "Should have seen the signer"); + is(item.signed, "true", "Should have listed the item as signed"); } - item = get_item(items, TESTROOT + "amosigned2.xpi"); + item = get_item(items, TESTROOT + "signed2.xpi"); if (item) { is(item.name, "Signed XPI Test", "Should have seen the name from the trigger list"); - is(item.signed, "false", "Should have listed the item as signed"); + is(item.cert, "(Object Signer)", "Should have seen the signer"); + is(item.signed, "true", "Should have listed the item as signed"); } return false; } @@ -53,7 +55,7 @@ function install_ended(install, addon) { function finish_test(count) { is(count, 0, "No add-ons should have been successfully installed"); - Services.perms.remove(makeURI("http://example.com"), "install"); + Services.perms.remove("example.com", "install"); gBrowser.removeCurrentTab(); Harness.finish(); |