mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
12 lines
388 B
JavaScript
12 lines
388 B
JavaScript
|
// Make sure that we can resolve the ascii charset alias to us-ascii
|
||
|
// (bug 383018)
|
||
|
|
||
|
function run_test() {
|
||
|
var ccm = Components.classes["@mozilla.org/charset-converter-manager;1"];
|
||
|
var ccms = ccm.getService(Components.interfaces.nsICharsetConverterManager);
|
||
|
|
||
|
var alias = ccms.getCharsetAlias("ascii");
|
||
|
// ascii should be an alias for us-ascii
|
||
|
do_check_eq(alias, "us-ascii");
|
||
|
}
|