Bug 698524 - fix test_startup.js xpcshell test for SeaMonkey by excluding all non-test add-ons. r=Mossop

This commit is contained in:
Jens Hatlak 2011-11-04 21:08:48 +00:00
parent da3cdc299a
commit ed94548c09

View File

@ -447,13 +447,9 @@ function check_startup_changes(aType, aIds) {
var ids = aIds.slice(0);
ids.sort();
var changes = AddonManager.getStartupChanges(aType);
changes = changes.filter(function(aEl) /@tests.mozilla.org$/.test(aEl));
changes.sort();
// Remove the default theme if it is in the list
var pos = changes.indexOf("{972ce4c6-7e08-4474-a285-3208198ce6fd}");
if (pos != -1)
changes.splice(pos, 1);
do_check_eq(JSON.stringify(ids), JSON.stringify(changes));
}