summaryrefslogtreecommitdiffstats
path: root/toolkit/components/commandlines/test/unit/test_bug666224.js
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/components/commandlines/test/unit/test_bug666224.js')
-rw-r--r--toolkit/components/commandlines/test/unit/test_bug666224.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/toolkit/components/commandlines/test/unit/test_bug666224.js b/toolkit/components/commandlines/test/unit/test_bug666224.js
new file mode 100644
index 000000000..8d372097a
--- /dev/null
+++ b/toolkit/components/commandlines/test/unit/test_bug666224.js
@@ -0,0 +1,6 @@
+function run_test() {
+ var cmdLine=Components.classes["@mozilla.org/toolkit/command-line;1"].createInstance(Components.interfaces.nsICommandLine);
+ try {
+ cmdLine.getArgument(cmdLine.length);
+ } catch (e) {}
+}