Source code
Revision control
Copy as Markdown
Other Tools
// 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);