summaryrefslogtreecommitdiffstats
path: root/kjsembed/tests/test_args.js
diff options
context:
space:
mode:
Diffstat (limited to 'kjsembed/tests/test_args.js')
-rwxr-xr-xkjsembed/tests/test_args.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/kjsembed/tests/test_args.js b/kjsembed/tests/test_args.js
new file mode 100755
index 00000000..5915cbf1
--- /dev/null
+++ b/kjsembed/tests/test_args.js
@@ -0,0 +1,9 @@
+#!/usr/local/kde/bin/kjscmd
+
+
+for ( var i = 0 ; i < application.args.length ; i++ ) {
+ println( 'Arg' + i + ': ' + application.args[i] );
+}
+
+part.view().show();
+application.exec();