Unit test for bug 383018. Author: Adam Guthrie <ispiked@gmail.com
git-svn-id: svn://10.0.0.236/trunk@227636 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
11
mozilla/intl/uconv/tests/unit/test_bug383018.js
Normal file
11
mozilla/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");
|
||||
}
|
||||
Reference in New Issue
Block a user