summaryrefslogtreecommitdiffstats
path: root/toolkit/components/url-classifier/tests/unit/test_malwaretable_pref.js
blob: 95a8f1a8e81bcb18d15643bebd63e976cf2d15eb (plain)
1
2
3
4
5
6
7
// 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);