summaryrefslogtreecommitdiffstats
path: root/toolkit/components/url-classifier/tests/unit/test_malwaretable_pref.js
blob: c7118f6e495983d087e5b411f0a2d4c9ddde2d3a (plain)
1
2
3
4
// Ensure that the default value of malwareTable is always in sorted order
let originalValue = Services.prefs.getCharPref("urlclassifier.malwareTable");
let sortedValue = originalValue.split(",").sort().join(",");
Assert.equal(originalValue, sortedValue);