mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 12:35:58 +00:00
Unit test for bug 383018. Author: Adam Guthrie <ispiked@gmail.com
This commit is contained in:
parent
db2f43135f
commit
5ccbab1868
11
intl/uconv/tests/unit/test_bug383018.js
Normal file
11
intl/uconv/tests/unit/test_bug383018.js
Normal file
@ -0,0 +1,11 @@
|
||||
// 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");
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user