Bug 903891 - Fix category manager tests to use a contract-id that we can create in content. r=emk

This commit is contained in:
Bobby Holley 2013-08-22 15:51:34 -07:00
parent a097c1cfe1
commit 9f7dbbc925
2 changed files with 5 additions and 4 deletions

View File

@ -18,7 +18,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=597809
SimpleTest.waitForExplicitFinish();
SpecialPowers.addCategoryEntry("JavaScript-global-property", "testSNSM", "@mozilla.org/embedcomp/prompt-service;1",
SpecialPowers.addCategoryEntry("JavaScript-global-property", "testSNSM", "@mozilla.org/xmlextras/xmlhttprequest;1",
false, true);
SimpleTest.executeSoon(function () {

View File

@ -19,10 +19,11 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=641552
SimpleTest.waitForExplicitFinish();
var contractId = "@mozilla.org/xmlextras/xmlhttprequest;1";
var categoryEntries = [
{category: "JavaScript-global-property", entry: "randomname", contractId: "@mozilla.org/embedcomp/prompt-service;1"},
{category: "JavaScript-navigator-property", entry: "randomname1", contractId: "@mozilla.org/embedcomp/prompt-service;1"},
{category: "JavaScript-navigator-property", entry: "randomname2", contractId: "@mozilla.org/embedcomp/prompt-service;1"},
{category: "JavaScript-global-property", entry: "randomname", contractId: contractId},
{category: "JavaScript-navigator-property", entry: "randomname1", contractId: contractId},
{category: "JavaScript-navigator-property", entry: "randomname2", contractId: contractId},
];
function addCategoryEntries(func) {