diff options
Diffstat (limited to 'kjsembed/tests/test_tdeparts_args.js')
-rw-r--r-- | kjsembed/tests/test_tdeparts_args.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/kjsembed/tests/test_tdeparts_args.js b/kjsembed/tests/test_tdeparts_args.js new file mode 100644 index 00000000..a719590a --- /dev/null +++ b/kjsembed/tests/test_tdeparts_args.js @@ -0,0 +1,16 @@ +#!/usr/bin/env kjscmd + +var mw = new KMainWindow(); +var box = new TQVBox( mw ); +mw.setCentralWidget( box ); + +var args = [ "WIDTH=300", "HEIGHT=250", "CODE=TestApplet.class", "CLASSPATH=.", "TEXT=Foobar" ] +var part = Factory.createROPart( "application/x-java-applet", + "'KParts/ReadOnlyPart' in ServiceTypes", + box, "foobar", + args ); + +part.openURL( "./TestApplet.class" ); + +mw.show(); +application.exec(); |