fune/toolkit/components/url-classifier/tests/unit/test_malwaretable_pref.js
Victor Porof 4a06c925ac Bug 1561435 - Format toolkit/components/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D36052

--HG--
extra : source : b5be5b4f4b47c256e28a29f665dc754f6407ee7f
2019-07-05 11:14:05 +02:00

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