Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 function run_test()
2 {
3 var failures = false;
4 var ccManager =
5 Components.classes["@mozilla.org/charset-converter-manager;1"]
6 .getService(Components.interfaces.nsICharsetConverterManager);
8 var decoderList = ccManager.getDecoderList();
9 while (decoderList.hasMore()) {
10 var decoder = decoderList.getNext();
11 try {
12 var langGroup = ccManager.getCharsetLangGroupRaw(decoder);
13 } catch(e) {
14 dump("no langGroup for " + decoder + "\n");
15 failures = true;
16 }
17 }
18 if (failures) {
19 do_throw("missing langGroups");
20 }
21 }