summaryrefslogtreecommitdiffstats
path: root/intl/uconv/tests/unit/test_bug522931.js
diff options
context:
space:
mode:
Diffstat (limited to 'intl/uconv/tests/unit/test_bug522931.js')
-rw-r--r--intl/uconv/tests/unit/test_bug522931.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/intl/uconv/tests/unit/test_bug522931.js b/intl/uconv/tests/unit/test_bug522931.js
new file mode 100644
index 000000000..c7a331a2e
--- /dev/null
+++ b/intl/uconv/tests/unit/test_bug522931.js
@@ -0,0 +1,6 @@
+// crash test with invaild parameter (bug 522931)
+function run_test()
+{
+ var textToSubURI = Components.classes["@mozilla.org/intl/texttosuburi;1"].getService(Components.interfaces.nsITextToSubURI);
+ do_check_eq(textToSubURI.UnEscapeAndConvert("UTF-8", null), "");
+}