From 90825e2392b2d70e43c7a25b8a3752299a933894 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kjsembed/tests/test_qcanvas.js | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 kjsembed/tests/test_qcanvas.js (limited to 'kjsembed/tests/test_qcanvas.js') diff --git a/kjsembed/tests/test_qcanvas.js b/kjsembed/tests/test_qcanvas.js new file mode 100644 index 00000000..c5ffd7f9 --- /dev/null +++ b/kjsembed/tests/test_qcanvas.js @@ -0,0 +1,29 @@ +#!/usr/bin/env kjscmd + +c = new QCanvas(); + +item = new QCanvasText( 'hi', c ); +item.move( 50, 50 ); +item.show(); + +item = new QCanvasText( 'hi', c ); +item.move( 150, 50 ); +item.show(); + +item = new QCanvasText( 'hixxx', c ); +item.move( 50, 150 ); +item.show(); + +item = new QCanvasText( 'hixxxxxxx', c ); +item.move( 150, 150 ); +item.show(); + +view = new QCanvasView(); +view.setCanvas( c ); + +view.update(); +view.show(); + +//load( '../docs/examples/docviewer/docviewer.js' ); + +application.exec(); -- cgit v1.2.1