fune/toolkit/components/url-classifier/tests/unit/test_malwaretable_pref.js
Francois Marier 530db90579 Bug 1395733 - Ensure the default value of urlclassifier.malwareTable is always sorted. r=gcp
MozReview-Commit-ID: 10M2ZpDyAI9

--HG--
extra : rebase_source : 4523a0a1fd3adbdc8f0c13676548409ee9536f06
2017-08-31 14:54:11 -07:00

4 lines
251 B
JavaScript

// Ensure that the default value of malwareTable is always in sorted order
let originalValue = prefBranch.getCharPref("urlclassifier.malwareTable");
let sortedValue = originalValue.split(",").sort().join(",");
do_check_eq(originalValue, sortedValue);