fune/toolkit/components/url-classifier/tests/unit/test_malwaretable_pref.js

4 lines
256 B
JavaScript

// 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);