diff options
Diffstat (limited to 'toolkit/components/url-classifier/tests/unit/test_malwaretable_pref.js')
-rw-r--r-- | toolkit/components/url-classifier/tests/unit/test_malwaretable_pref.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/toolkit/components/url-classifier/tests/unit/test_malwaretable_pref.js b/toolkit/components/url-classifier/tests/unit/test_malwaretable_pref.js new file mode 100644 index 0000000000..c7118f6e49 --- /dev/null +++ b/toolkit/components/url-classifier/tests/unit/test_malwaretable_pref.js @@ -0,0 +1,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); |