mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 20:47:44 +00: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");
|
|
}
|