mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
22 lines
544 B
JavaScript
22 lines
544 B
JavaScript
function run_test()
|
|
{
|
|
var failures = false;
|
|
var ccManager =
|
|
Components.classes["@mozilla.org/charset-converter-manager;1"]
|
|
.getService(Components.interfaces.nsICharsetConverterManager);
|
|
|
|
var decoderList = ccManager.getDecoderList();
|
|
while (decoderList.hasMore()) {
|
|
var decoder = decoderList.getNext();
|
|
try {
|
|
var langGroup = ccManager.getCharsetLangGroup(decoder);
|
|
} catch(e) {
|
|
dump("no langGroup for " + decoder + "\n");
|
|
failures = true;
|
|
}
|
|
}
|
|
if (failures) {
|
|
do_throw("missing langGroups");
|
|
}
|
|
}
|