Mypal68/toolkit/components/url-classifier/tests/unit/test_malwaretable_pref.js
2022-04-16 07:41:55 +03:00

8 lines
265 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);